summaryrefslogtreecommitdiff
path: root/engine/overworld/check_player_state.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-06-06 12:09:36 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-06-06 12:09:36 -0400
commit96a58ce52ac4b8c4c8b2ecbf0f185d1ebda10a6e (patch)
tree94af78e339c96436e8ee2180e19279788659056d /engine/overworld/check_player_state.asm
parentaafed67874b49180b4640eeaf5b20981c24ce9fc (diff)
Split out pikachu engine functions; sprite state data macros
Diffstat (limited to 'engine/overworld/check_player_state.asm')
-rw-r--r--engine/overworld/check_player_state.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/overworld/check_player_state.asm b/engine/overworld/check_player_state.asm
index 157649a7..0fc73bc7 100644
--- a/engine/overworld/check_player_state.asm
+++ b/engine/overworld/check_player_state.asm
@@ -90,7 +90,7 @@ IsPlayerFacingEdgeOfMap: ; c148 (3:4148)
push hl
push de
push bc
- ld a, [wSpriteStateData1 + 9] ; player sprite's facing direction
+ ld a, [wPlayerFacingDirection] ; player sprite's facing direction
srl a
ld c, a
ld b, $0
@@ -160,7 +160,7 @@ IsWarpTileInFrontOfPlayer: ; c197 (3:4197)
ld a, [wCurMap]
cp SS_ANNE_5
jr z, .ssAnne5
- ld a, [wSpriteStateData1 + 9] ; player sprite's facing direction
+ ld a, [wPlayerFacingDirection] ; player sprite's facing direction
srl a
ld c, a
ld b, 0