From 6afb58d63d3e5f0b28c4946644c603d4278a94bf Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 26 Jan 2025 19:14:06 +0100 Subject: [PATCH] animation: removed ready flag Instead if no animation is playing simply set the type to nop --- src/animation.s | 9 ++------- src/defs.s | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) 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 -- 2.30.2