aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/pathfinding.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2022-07-10 21:11:03 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2022-07-10 21:11:03 -0400
commit8f81e71f192bce4b6f56b042638da376737e5abc (patch)
treebb2fb2cd6ccab2514c7014323971302f5aebe0e1 /engine/overworld/pathfinding.asm
parentReplace "branch" labels in SFX files with local names (diff)
downloadpokeyellow-8f81e71f192bce4b6f56b042638da376737e5abc.tar.gz
pokeyellow-8f81e71f192bce4b6f56b042638da376737e5abc.tar.xz
pokeyellow-8f81e71f192bce4b6f56b042638da376737e5abc.zip
Identify some `.asm_*` labels
Diffstat (limited to 'engine/overworld/pathfinding.asm')
-rw-r--r--engine/overworld/pathfinding.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/overworld/pathfinding.asm b/engine/overworld/pathfinding.asm
index 1925dbbc..d067345e 100644
--- a/engine/overworld/pathfinding.asm
+++ b/engine/overworld/pathfinding.asm
@@ -14,22 +14,22 @@ FindPathToPlayer:
call CalcDifference
ld d, a
and a
- jr nz, .asm_f8da
+ jr nz, .stillHasYProgress
ldh a, [hFindPathFlags]
set 0, a ; current end of path matches the player's Y coordinate
ldh [hFindPathFlags], a
-.asm_f8da
+.stillHasYProgress
ldh a, [hFindPathXProgress]
ld b, a
ldh a, [hNPCPlayerXDistance] ; X distance in steps
call CalcDifference
ld e, a
and a
- jr nz, .asm_f8ec
+ jr nz, .stillHasXProgress
ldh a, [hFindPathFlags]
set 1, a ; current end of path matches the player's X coordinate
ldh [hFindPathFlags], a
-.asm_f8ec
+.stillHasXProgress
ldh a, [hFindPathFlags]
cp $3 ; has the end of the path reached the player's position?
jr z, .done