aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/movement.asm
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-24 09:33:33 -0400
committerGitHub <noreply@github.com>2024-09-24 09:33:33 -0400
commitb5d2540e7c56d7ae596ba49d105b1a01dd6ffd29 (patch)
treee5cd5ae7b6f06ce33f495ad3ba995761ec93f72f /engine/overworld/movement.asm
parentFix comment: Road -> Roar (#466) (diff)
downloadpokeyellow-b5d2540e7c56d7ae596ba49d105b1a01dd6ffd29.tar.gz
pokeyellow-b5d2540e7c56d7ae596ba49d105b1a01dd6ffd29.tar.xz
pokeyellow-b5d2540e7c56d7ae596ba49d105b1a01dd6ffd29.zip
Identify more bit flags (#465)
* Identify more bit flags * Space
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 5f95cf6c..cb65c997 100644
--- a/engine/overworld/movement.asm
+++ b/engine/overworld/movement.asm
@@ -641,7 +641,7 @@ CanWalkOntoTile:
add SPRITESTATEDATA2_YDISPLACEMENT
ld l, a
ld a, [hli] ; x#SPRITESTATEDATA2_YDISPLACEMENT (initialized at $8, keep track of where a sprite did go)
- bit 7, d ; check if going upwards (d=$ff)
+ bit 7, d ; check if going upwards (d == -1)
jr nz, .upwards
add d
; bug: these tests against $5 probably were supposed to prevent
@@ -658,7 +658,7 @@ CanWalkOntoTile:
.checkHorizontal
ld d, a
ld a, [hl] ; x#SPRITESTATEDATA2_XDISPLACEMENT (initialized at $8, keep track of where a sprite did go)
- bit 7, e ; check if going left (e=$ff)
+ bit 7, e ; check if going left (e == -1)
jr nz, .left
add e
cp $5 ; compare, but no conditional jump like in the vertical check above (bug?)