summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/home.asm b/home.asm
index 8995d45d8..ad757acb1 100644
--- a/home.asm
+++ b/home.asm
@@ -1508,19 +1508,19 @@ FacingPlayerDistance:: ; 36ad
; Return carry if the sprite at bc is facing the player,
; and its distance in d.
- ld hl, OBJECT_MAP_X ; x
+ ld hl, OBJECT_NEXT_MAP_X ; x
add hl, bc
ld d, [hl]
- ld hl, OBJECT_MAP_Y ; y
+ ld hl, OBJECT_NEXT_MAP_Y ; y
add hl, bc
ld e, [hl]
- ld a, [PlayerMapX]
+ ld a, [PlayerNextMapX]
cp d
jr z, .CheckY
- ld a, [PlayerMapY]
+ ld a, [PlayerNextMapY]
cp e
jr z, .CheckX
@@ -1528,7 +1528,7 @@ FacingPlayerDistance:: ; 36ad
ret
.CheckY
- ld a, [PlayerMapY]
+ ld a, [PlayerNextMapY]
sub e
jr z, .NotFacing
jr nc, .Above
@@ -1546,7 +1546,7 @@ FacingPlayerDistance:: ; 36ad
jr .CheckFacing
.CheckX
- ld a, [PlayerMapX]
+ ld a, [PlayerNextMapX]
sub d
jr z, .NotFacing
jr nc, .Left