Skip to content

Commit

Permalink
fix: swords not updating properly, sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyV99 committed Jan 1, 2024
1 parent 27c41e1 commit 9156704
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/zc/zelda.cpp
Expand Up @@ -2135,9 +2135,16 @@ int32_t init_game()
}
else
{
Awpn = get_qr(qr_SELECTAWPN) ? new_subscreen_active->get_item_pos(game->awpn)
: selectSword();
directItemA = NEG_OR_MASK(Awpn, 0xFF);
if(get_qr(qr_SELECTAWPN))
{
Awpn = new_subscreen_active->get_item_pos(game->awpn);
directItemA = NEG_OR_MASK(Awpn, 0xFF);
}
else
{
selectSword();
directItemA = -1;
}
Bwpn = new_subscreen_active->get_item_pos(game->bwpn);
directItemB = NEG_OR_MASK(Bwpn, 0xFF);
Xwpn = new_subscreen_active->get_item_pos(game->xwpn);
Expand Down

0 comments on commit 9156704

Please sign in to comment.