summaryrefslogtreecommitdiff
path: root/engine/events/hidden_objects/pokecenter_pc.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/events/hidden_objects/pokecenter_pc.asm')
-rw-r--r--engine/events/hidden_objects/pokecenter_pc.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/events/hidden_objects/pokecenter_pc.asm b/engine/events/hidden_objects/pokecenter_pc.asm
index c1225d3a..9ae7d41c 100644
--- a/engine/events/hidden_objects/pokecenter_pc.asm
+++ b/engine/events/hidden_objects/pokecenter_pc.asm
@@ -1,6 +1,6 @@
OpenPokemonCenterPC:
- ld a, [wSpriteStateData1 + 9]
- cp SPRITE_FACING_UP ; check to see if player is facing up
+ ld a, [wSpritePlayerStateData1FacingDirection]
+ cp SPRITE_FACING_UP
ret nz
call EnableAutoTextBoxDrawing
ld a, $1
@@ -8,4 +8,4 @@ OpenPokemonCenterPC:
tx_pre_jump PokemonCenterPCText
PokemonCenterPCText::
- TX_POKECENTER_PC
+ script_pokecenter_pc