aboutsummaryrefslogtreecommitdiffstats
path: root/home/pokemon.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 /home/pokemon.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 'home/pokemon.asm')
-rw-r--r--home/pokemon.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/pokemon.asm b/home/pokemon.asm
index 4e6e080b..3e63de35 100644
--- a/home/pokemon.asm
+++ b/home/pokemon.asm
@@ -274,7 +274,7 @@ HandlePartyMenuInput::
scf
ret
.swappingPokemon
- bit 1, b ; was the B button pressed?
+ bit BIT_B_BUTTON, b
jr z, .handleSwap ; if not, handle swapping the pokemon
.cancelSwap ; if the B button was pressed
farcall ErasePartyMenuCursors