Skip to content

Commit

Permalink
Identify some missed bit 7 menu flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Dec 2, 2024
1 parent 03a1c6e commit 99af3f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions engine/link/link_trade.asm
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ LinkTradeMenu:

.MenuAction:
ld hl, w2DMenuFlags2
res 7, [hl]
res _2DMENU_EXITING_F, [hl]
ldh a, [hBGMapMode]
push af
call .loop
Expand All @@ -219,7 +219,7 @@ LinkTradeMenu:
farcall _2DMenuInterpretJoypad
jr c, .done
ld a, [w2DMenuFlags1]
bit 7, a
bit _2DMENU_DISABLE_JOYPAD_FILTER_F, a
jr nz, .done
call .GetJoypad
ld b, a
Expand Down Expand Up @@ -247,7 +247,7 @@ LinkTradeMenu:
call .TryAnims
ret c
ld a, [w2DMenuFlags1]
bit 7, a
bit _2DMENU_DISABLE_JOYPAD_FILTER_F, a
jr z, .loop2
and a
ret
Expand Down
2 changes: 1 addition & 1 deletion engine/menus/menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _InterpretMobileMenu::
call ApplyTilemap
call Init2DMenuCursorPosition
ld hl, w2DMenuFlags1
set 7, [hl]
set _2DMENU_DISABLE_JOYPAD_FILTER_F, [hl]
.loop
call DelayFrame
farcall Function10032e
Expand Down

0 comments on commit 99af3f4

Please sign in to comment.