Skip to content

Commit

Permalink
interface needs to update regardless, minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
mckinlee committed Feb 12, 2024
1 parent acfc98b commit 69f842c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions soh/src/code/z_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1957,8 +1957,10 @@ u8 Item_Give(PlayState* play, u8 item) {

} else if (item == ITEM_SWORD_MASTER) {
if (CVarGetInteger("gTimelessEquipment", 0)) {
// Do not equip the Master Sword if gTimelessEquipment is enabled
// This prevents child's last equipped sword from always being MS
// If gTimelessEquipment is enabled, only update the interface.
if (play != NULL) {
Interface_LoadItemIcon1(play, 0);
}
} else {
gSaveContext.equips.buttonItems[0] = ITEM_SWORD_MASTER;
gSaveContext.equips.equipment &= (u16) ~(0xF << (EQUIP_TYPE_SWORD * 4));
Expand Down

0 comments on commit 69f842c

Please sign in to comment.