From: Lukas Krickl Date: Sun, 26 Jan 2025 18:14:06 +0000 (+0100) Subject: animation: removed ready flag X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=6afb58d63d3e5f0b28c4946644c603d4278a94bf;p=gbrg%2F.git animation: removed ready flag Instead if no animation is playing simply set the type to nop --- diff --git a/src/animation.s b/src/animation.s index 7f42aca..6f482b7 100644 --- a/src/animation.s +++ b/src/animation.s @@ -43,14 +43,9 @@ anim_walk_down: ; 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 diff --git a/src/defs.s b/src/defs.s index dc30b06..2285aed 100644 --- a/src/defs.s +++ b/src/defs.s @@ -198,9 +198,7 @@ ; animation flags enum .se 1 - ; set if the animation is ready - ; to be played -.de ANIM_FREADY, 1 + ; animation table entries .se 0