summaryrefslogtreecommitdiff
path: root/home/pathfinding.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-16 12:32:19 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-16 12:32:19 -0400
commit76b882d9523915ca8ced96e8c5e889ca2728241e (patch)
treedf360d4315b6627348a72ccad346391077fd5bb2 /home/pathfinding.asm
parent594c58a289cbad3954899d76ed000f483389472f (diff)
Reformat map scripts' coordinate and movement data
'dbmapcoord' has X, Y order like other coordinate-related data macros
Diffstat (limited to 'home/pathfinding.asm')
-rw-r--r--home/pathfinding.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/pathfinding.asm b/home/pathfinding.asm
index aca5a763..53f98847 100644
--- a/home/pathfinding.asm
+++ b/home/pathfinding.asm
@@ -25,7 +25,7 @@ MoveSprite_::
ld [hli], a
inc de
inc c
- cp $FF ; have we reached the end of the movement data?
+ cp -1 ; have we reached the end of the movement data?
jr nz, .loop
ld a, c