From: Lukas Krickl Date: Sun, 14 Sep 2025 05:21:56 +0000 (+0200) Subject: animation: fixed timer sometimes skipping the end frame X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=1a6cba75fe41319499a5de1e846cad08d82b97bb;p=gbrg%2F.git animation: fixed timer sometimes skipping the end frame This fix simply replaced the equality check with a greater than check. --- 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