summaryrefslogtreecommitdiff
path: root/src/engine/home.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2018-02-17 19:55:51 +0100
committerxCrystal <rgr.crystal@gmail.com>2018-02-17 19:55:51 +0100
commit1e411d212d8bb47ee134afc872be9a9303c52820 (patch)
tree854a1e43d2f98cce7251ea9df5bc8af9b2c4754a /src/engine/home.asm
parentccb7c0c359dd1aa4475c9f51b37f7b5faabc1e34 (diff)
SPRITE_ANIM_ constants (for the sprite anim buffer
Diffstat (limited to 'src/engine/home.asm')
-rw-r--r--src/engine/home.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm
index d11c4c0..c1c4e07 100644
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -8037,18 +8037,18 @@ Func_3d72: ; 3d72 (0:3d72)
Func_3db7: ; 3db7 (0:3db7)
push bc
- ld c, $0
+ ld c, SPRITE_ANIM_PROPERTY_1
call GetSpriteBufferProperty
pop bc
ret
-; read property (byte) c from a sprite in wSpriteBuffer identified by wWhichSprite
+; read property (byte) c from a sprite in wSpriteAnimBuffer identified by wWhichSprite
GetSpriteBufferProperty: ; 3dbf (0:3dbf)
ld a, [wWhichSprite]
- cp SPRITE_BUFFER_CAPACITY
+ cp SPRITE_ANIM_BUFFER_CAPACITY
jr c, .got_sprite
rst $38
- ld a, SPRITE_BUFFER_CAPACITY - 1 ; default to last sprite
+ ld a, SPRITE_ANIM_BUFFER_CAPACITY - 1 ; default to last sprite
.got_sprite
push bc
swap a
@@ -8059,7 +8059,7 @@ GetSpriteBufferProperty: ; 3dbf (0:3dbf)
and $f0
or c
ld c, a
- ld hl, wSpriteBuffer
+ ld hl, wSpriteAnimBuffer
add hl, bc
pop bc
ret