aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/is_player_just_outside_map.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2015-10-29 14:23:30 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2015-10-29 14:23:30 -0400
commitcb414f1480e9117e5d6ee0ab5cb81903e83cde9a (patch)
treee44bd6299c61335a9a0476db57b565aadcd0b4d7 /engine/overworld/is_player_just_outside_map.asm
parentRevert "Revert "data/facing.asm, titlescreen functions, oam/sprite related fu... (diff)
downloadpokeyellow-cb414f1480e9117e5d6ee0ab5cb81903e83cde9a.tar.gz
pokeyellow-cb414f1480e9117e5d6ee0ab5cb81903e83cde9a.tar.xz
pokeyellow-cb414f1480e9117e5d6ee0ab5cb81903e83cde9a.zip
overworld item & movement code, cable club code, remove more instances of W_, add PIKAHAPPY_TRADE
Also make replace.sh take args
Diffstat (limited to 'engine/overworld/is_player_just_outside_map.asm')
-rw-r--r--engine/overworld/is_player_just_outside_map.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/overworld/is_player_just_outside_map.asm b/engine/overworld/is_player_just_outside_map.asm
index 24e434b3..e9ba204a 100644
--- a/engine/overworld/is_player_just_outside_map.asm
+++ b/engine/overworld/is_player_just_outside_map.asm
@@ -1,13 +1,13 @@
; returns whether the player is one tile outside the map in Z
IsPlayerJustOutsideMap: ; 128d8 (4:68d8)
- ld a, [W_YCOORD]
+ ld a, [wYCoord]
ld b, a
- ld a, [W_CURMAPHEIGHT]
+ ld a, [wCurMapHeight]
call .compareCoordWithMapDimension
ret z
- ld a, [W_XCOORD]
+ ld a, [wXCoord]
ld b, a
- ld a, [W_CURMAPWIDTH]
+ ld a, [wCurMapWidth]
.compareCoordWithMapDimension
add a
cp b