From 1a6cba75fe41319499a5de1e846cad08d82b97bb Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 14 Sep 2025 07:21:56 +0200 Subject: [PATCH] animation: fixed timer sometimes skipping the end frame This fix simply replaced the equality check with a greater than check. --- src/animation.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animation.s b/src/animation.s index 54f6ebe..5cabafb 100644 --- a/src/animation.s +++ b/src/animation.s @@ -259,7 +259,7 @@ unit_draw: ld a, [bc] ; a = expected timer cp a, d ; next frame? pop de - jr nz, @no_new_frame REL + jr nc, @no_new_frame REL ; if new frame: clear timer xor a, a -- 2.30.2