Fix getItem animation (#37)

This commit is contained in:
Garrett Cox
2024-05-22 09:04:58 -05:00
parent 3f9ddeeaa3
commit 9a21e23acd
@@ -7310,11 +7310,13 @@ void func_80838830(Player* this, s16 objectId) {
s32 pad[2];
if (objectId != OBJECT_UNSET_0) {
this->giObjectLoading = true;
osCreateMesgQueue(&this->giObjectLoadQueue, &this->giObjectLoadMsg, 1);
DmaMgr_SendRequestImpl(&this->giObjectDmaRequest, this->giObjectSegment, gObjectTable[objectId].vromStart,
gObjectTable[objectId].vromEnd - gObjectTable[objectId].vromStart, 0,
&this->giObjectLoadQueue, OS_MESG_PTR(NULL));
// #region 2S2H [Port] We don't care to wait for the item to load, mark it as loaded immediately
this->giObjectLoading = false;
// osCreateMesgQueue(&this->giObjectLoadQueue, &this->giObjectLoadMsg, 1);
// DmaMgr_SendRequestImpl(&this->giObjectDmaRequest, this->giObjectSegment, gObjectTable[objectId].vromStart,
// gObjectTable[objectId].vromEnd - gObjectTable[objectId].vromStart, 0,
// &this->giObjectLoadQueue, OS_MESG_PTR(NULL));
// #endregion
}
}