aboutsummaryrefslogtreecommitdiffstats
path: root/home/overworld.asm
diff options
context:
space:
mode:
authorRangi42 <sylvie.oukaour+rangi42@gmail.com>2025-06-30 13:30:57 -0400
committerRangi <35663410+Rangi42@users.noreply.github.com>2025-06-30 13:45:24 -0400
commit78e44a8fb10307c55d53a69179b9ff7cd6f49fc0 (patch)
treeccc6113a679d842077d67e5453709438c418114f /home/overworld.asm
parentReplace hardware_constants.asm with hardware.inc (#511) (diff)
downloadpokeyellow-78e44a8fb10307c55d53a69179b9ff7cd6f49fc0.tar.gz
pokeyellow-78e44a8fb10307c55d53a69179b9ff7cd6f49fc0.tar.xz
pokeyellow-78e44a8fb10307c55d53a69179b9ff7cd6f49fc0.zip
Use combined hardware constants
Diffstat (limited to 'home/overworld.asm')
-rw-r--r--home/overworld.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/overworld.asm b/home/overworld.asm
index daa806d6..8c79d6e7 100644
--- a/home/overworld.asm
+++ b/home/overworld.asm
@@ -5,7 +5,7 @@ HandleMidJump::
EnterMap::
; Load a new map.
- ld a, PAD_A | PAD_B | PAD_SELECT | PAD_START | PAD_RIGHT | PAD_LEFT | PAD_UP | PAD_DOWN
+ ld a, PAD_BUTTONS | PAD_CTRL_PAD
ld [wJoyIgnore], a
call LoadMapData
farcall ClearVariablesOnEnterMap
@@ -432,7 +432,7 @@ CheckWarpsNoCollisionLoop::
pop bc
pop de
ldh a, [hJoyHeld]
- and PAD_DOWN | PAD_UP | PAD_LEFT | PAD_RIGHT
+ and PAD_CTRL_PAD
jr z, CheckWarpsNoCollisionRetry2 ; if directional buttons aren't being pressed, do not pass through the warp
jr WarpFound1
@@ -1828,7 +1828,7 @@ JoypadOverworld::
cp ROUTE_17 ; Cycling Road
jr nz, .notForcedDownwards
ldh a, [hJoyHeld]
- and PAD_DOWN | PAD_UP | PAD_LEFT | PAD_RIGHT | PAD_B | PAD_A
+ and PAD_CTRL_PAD | PAD_B | PAD_A
jr nz, .notForcedDownwards
ld a, PAD_DOWN
ldh [hJoyHeld], a ; on the cycling road, if there isn't a trainer and the player isn't pressing buttons, simulate a down press