summaryrefslogtreecommitdiff
path: root/engine/overworld/movement.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 22:11:35 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 22:22:09 -0400
commit6ef36800b0dcb86100a7c716172015667e60dc99 (patch)
tree7e381171a7f42cadb6e619c839bfc4d3eb88e7d1 /engine/overworld/movement.asm
parent35deb771130a9012ee4494b1db097761f2fe2919 (diff)
Replace raw hex values with HRAM constants
To do: turn constants into labels and use ldh
Diffstat (limited to 'engine/overworld/movement.asm')
-rw-r--r--engine/overworld/movement.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/overworld/movement.asm b/engine/overworld/movement.asm
index 432ae5ca..6c354779 100644
--- a/engine/overworld/movement.asm
+++ b/engine/overworld/movement.asm
@@ -475,7 +475,7 @@ InitializeSpriteScreenPosition:
; tests if sprite is off screen or otherwise unable to do anything
CheckSpriteAvailability:
predef IsObjectHidden
- ld a, [$ffe5]
+ ld a, [hIsHiddenMissableObject]
and a
jp nz, .spriteInvisible
ld h, wSpriteStateData2 / $100
@@ -564,7 +564,7 @@ UpdateSpriteImage:
ld a, [hl] ; c1x9: facing direction
add b
ld b, a
- ld a, [$ff93] ; current sprite offset
+ ld a, [hTilePlayerStandingOn]
add b
ld b, a
ld a, [hCurrentSpriteOffset]