Bunny hood Equip Swap Fix in Scene Transition (#3152)

* test?

no clue why this section was added

* committing to commit the commit
This commit is contained in:
inspectredc 2023-09-10 18:52:46 +01:00 committed by GitHub
parent 3d0075e6ef
commit e31b2fd9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9687,14 +9687,6 @@ void Player_Init(Actor* thisx, PlayState* play2) {
sMaskMemory = PLAYER_MASK_NONE;
}
this->currentMask = sMaskMemory;
for (uint16_t cSlotIndex = 0; cSlotIndex < ARRAY_COUNT(gSaveContext.equips.cButtonSlots); cSlotIndex++) {
if (gSaveContext.equips.cButtonSlots[cSlotIndex] == SLOT_TRADE_CHILD &&
(gItemAgeReqs[gSaveContext.equips.buttonItems[cSlotIndex + 1]] != 9 && LINK_IS_ADULT &&
!CVarGetInteger("gTimelessEquipment", 0))) {
gSaveContext.equips.cButtonSlots[cSlotIndex] = SLOT_NONE;
gSaveContext.equips.buttonItems[cSlotIndex + 1] = ITEM_NONE;
}
}
}
Player_InitCommon(this, play, gPlayerSkelHeaders[((void)0, gSaveContext.linkAge)]);
this->giObjectSegment = (void*)(((uintptr_t)ZELDA_ARENA_MALLOC_DEBUG(0x3008) + 8) & ~0xF);