aboutsummaryrefslogtreecommitdiffstats
path: root/engine/menus/pc.asm
diff options
context:
space:
mode:
authorYoann Fievez <yoann.fievez@gmail.com>2021-11-05 20:40:15 +0100
committerGitHub <noreply@github.com>2021-11-05 15:40:15 -0400
commit8349bfd8e646002105dfd6a7f997c26cf0e0624b (patch)
tree8586363ba32075ec9c7ddf07e384507679658b11 /engine/menus/pc.asm
parentUpdate 'make compare' for no pret repo and add 'make' for fork (#339) (diff)
downloadpokeyellow-8349bfd8e646002105dfd6a7f997c26cf0e0624b.tar.gz
pokeyellow-8349bfd8e646002105dfd6a7f997c26cf0e0624b.tar.xz
pokeyellow-8349bfd8e646002105dfd6a7f997c26cf0e0624b.zip
Refactorize check button pressed (#340)
Diffstat (limited to 'engine/menus/pc.asm')
-rw-r--r--engine/menus/pc.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/menus/pc.asm b/engine/menus/pc.asm
index 4c340e7b..6a15eaa5 100644
--- a/engine/menus/pc.asm
+++ b/engine/menus/pc.asm
@@ -14,7 +14,7 @@ PCMainMenu:
ld hl, wFlags_0xcd60
set 5, [hl]
call HandleMenuInput
- bit 1, a ;if player pressed B
+ bit BIT_B_BUTTON, a
jp nz, LogOff
ld a, [wMaxMenuItem]
cp 2