mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
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.
This commit is contained in:
parent
aabfc0b413
commit
8befc889ad
@ -135,16 +135,16 @@ _InitSpriteAnimStruct::
|
|||||||
; Back up the structure address to bc.
|
; Back up the structure address to bc.
|
||||||
ld c, l
|
ld c, l
|
||||||
ld b, h
|
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
|
ld hl, wSpriteAnimCount
|
||||||
inc [hl]
|
inc [hl]
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and a
|
and a
|
||||||
jr nz, .initialized
|
jr nz, .nonzero
|
||||||
inc [hl]
|
inc [hl]
|
||||||
|
.nonzero
|
||||||
|
|
||||||
.initialized
|
|
||||||
; Get row a of SpriteAnimSeqData, copy the pointer into de
|
; Get row a of SpriteAnimSeqData, copy the pointer into de
|
||||||
pop af
|
pop af
|
||||||
ld e, a
|
ld e, a
|
||||||
@ -228,9 +228,9 @@ DeinitializeAllSprites:
|
|||||||
UpdateAnimFrame:
|
UpdateAnimFrame:
|
||||||
call InitSpriteAnimBuffer ; init WRAM
|
call InitSpriteAnimBuffer ; init WRAM
|
||||||
call GetSpriteAnimFrame ; read from a memory array
|
call GetSpriteAnimFrame ; read from a memory array
|
||||||
cp -3
|
cp dowait_command
|
||||||
jr z, .done
|
jr z, .done
|
||||||
cp -4
|
cp delanim_command
|
||||||
jr z, .delete
|
jr z, .delete
|
||||||
call GetFrameOAMPointer
|
call GetFrameOAMPointer
|
||||||
; add byte to [wCurAnimVTile]
|
; add byte to [wCurAnimVTile]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user