summaryrefslogtreecommitdiff
path: root/engine/gfx/sprites.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2020-08-04 20:26:26 +0200
committermid-kid <esteve.varela@gmail.com>2020-08-05 17:34:49 +0200
commita51c15a7ef24d73ab2f8b1a7e16dcd3b6e30436d (patch)
tree89b6c73d20f335407ac61ed8ad20062d28715c74 /engine/gfx/sprites.asm
parentf1075b1a9dc9654598a7e14ed31ad0931b62bfe5 (diff)
Remove a verifiably false comment
wSpriteAnimCount starts at 0, keeps incrementing and never decrements. When it reaches $ff, the next value is 1. Its purpose is unknown, as this value is used nowhere else.
Diffstat (limited to 'engine/gfx/sprites.asm')
-rw-r--r--engine/gfx/sprites.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/gfx/sprites.asm b/engine/gfx/sprites.asm
index 13ea14d0..d902ff59 100644
--- a/engine/gfx/sprites.asm
+++ b/engine/gfx/sprites.asm
@@ -135,16 +135,16 @@ _InitSpriteAnimStruct::
; Back up the structure address to bc.
ld c, l
ld b, h
-; Value [wSpriteAnimCount] is initially set to -1. Set it to
-; the number of objects loaded into this array.
+
+; Increment [wSpriteAnimCount], skipping a 0 value.
ld hl, wSpriteAnimCount
inc [hl]
ld a, [hl]
and a
- jr nz, .initialized
+ jr nz, .nonzero
inc [hl]
+.nonzero
-.initialized
; Get row a of SpriteAnimSeqData, copy the pointer into de
pop af
ld e, a
@@ -215,9 +215,9 @@ DeinitializeSprite:
UpdateAnimFrame:
call InitSpriteAnimBuffer ; init WRAM
call GetSpriteAnimFrame ; read from a memory array
- cp -3
+ cp dowait_command
jr z, .done
- cp -4
+ cp delanim_command
jr z, .delete
call GetFrameOAMPointer
; add byte to [wCurAnimVTile]