diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-03 19:59:41 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-03 19:59:41 -0400 |
| commit | 35deb771130a9012ee4494b1db097761f2fe2919 (patch) | |
| tree | f47b099cdb4a165dc0a5b0e85f2e24780629680f /engine/overworld/turn_sprite.asm | |
| parent | data/mapHeaders -> data/maps/headers; data/mapObjects -> data/maps/objects (diff) | |
| download | pokeyellow-35deb771130a9012ee4494b1db097761f2fe2919.tar.gz pokeyellow-35deb771130a9012ee4494b1db097761f2fe2919.tar.xz pokeyellow-35deb771130a9012ee4494b1db097761f2fe2919.zip | |
H_CONSTANTNAMES -> hConstantNames
Diffstat (limited to 'engine/overworld/turn_sprite.asm')
| -rwxr-xr-x | engine/overworld/turn_sprite.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/overworld/turn_sprite.asm b/engine/overworld/turn_sprite.asm index c7f7712b..bef26537 100755 --- a/engine/overworld/turn_sprite.asm +++ b/engine/overworld/turn_sprite.asm @@ -1,12 +1,12 @@ UpdateSpriteFacingOffsetAndDelayMovement:: ld h, $c2 - ld a, [H_CURRENTSPRITEOFFSET] + ld a, [hCurrentSpriteOffset] add $8 ld l, a ld a, $7f ; maximum movement delay ld [hl], a ; c2x8 (movement delay) dec h - ld a, [H_CURRENTSPRITEOFFSET] + ld a, [hCurrentSpriteOffset] add $9 ld l, a ld a, [hld] ; c1x9 (facing direction) @@ -14,7 +14,7 @@ UpdateSpriteFacingOffsetAndDelayMovement:: xor a ld [hld], a ld [hl], a ; c1x8 (walk animation frame) - ld a, [H_CURRENTSPRITEOFFSET] + ld a, [hCurrentSpriteOffset] add $2 ld l, a ld a, [hl] ; c1x2 (facing and animation table offset) |
