diff options
Diffstat (limited to 'engine/pathfinding.asm')
-rw-r--r-- | engine/pathfinding.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/pathfinding.asm b/engine/pathfinding.asm index ba052d38..f3d23b7c 100644 --- a/engine/pathfinding.asm +++ b/engine/pathfinding.asm @@ -14,22 +14,22 @@ FindPathToPlayer: call CalcDifference ld d, a and a - jr nz, .asm_f8da + jr nz, .asm_f76a ld a, [hFindPathFlags] set 0, a ; current end of path matches the player's Y coordinate ld [hFindPathFlags], a -.asm_f8da +.asm_f76a ld a, [hFindPathXProgress] ld b, a ld a, [hNPCPlayerXDistance] ; X distance in steps call CalcDifference ld e, a and a - jr nz, .asm_f8ec + jr nz, .asm_f77c ld a, [hFindPathFlags] set 1, a ; current end of path matches the player's X coordinate ld [hFindPathFlags], a -.asm_f8ec +.asm_f77c ld a, [hFindPathFlags] cp $3 ; has the end of the path reached the player's position? jr z, .done |