Instead if no animation is playing simply set the type to nop
; to set itself to 0000 when the animation is finisehd
; this is how anim_finished performs its check
anim_update:
- ld hl, curr_anim ; hl = anim_flags
- ld a, [hl+] ; a = flag
- and a, ANIM_FREADY
- ret z
-
- ld a, [hl]
- ld hl, animation_table
ld bc, curr_anim
+ ld a, [bc]
+ ld hl, animation_table
call call_tbl
ret
; animation flags enum
.se 1
- ; set if the animation is ready
- ; to be played
-.de ANIM_FREADY, 1
+
; animation table entries
.se 0