aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/is_player_just_outside_map.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-08-30 21:38:41 -0500
committerdannye <corrnondacqb@yahoo.com>2015-08-30 21:38:41 -0500
commit38065a744de1065cc021a4cafe22476f8425448d (patch)
treea37a103d7c22f3cc5f62689e5062877961493caa /engine/overworld/is_player_just_outside_map.asm
parentMerge pull request #116 from YamaArashi/master (diff)
downloadpokeyellow-38065a744de1065cc021a4cafe22476f8425448d.tar.gz
pokeyellow-38065a744de1065cc021a4cafe22476f8425448d.tar.xz
pokeyellow-38065a744de1065cc021a4cafe22476f8425448d.zip
No more W_
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