projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e4c54b
)
animation: fixed timer sometimes skipping the end frame
author
Lukas Krickl
<lukas@krickl.dev>
Sun, 14 Sep 2025 05:21:56 +0000
(07:21 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Sun, 14 Sep 2025 05:21:56 +0000
(07:21 +0200)
This fix simply replaced the equality check with a greater than check.
src/animation.s
patch
|
blob
|
history
diff --git
a/src/animation.s
b/src/animation.s
index 54f6ebe4c6bd2a9299ebf8c30b6407a15ca3b5bc..5cabafb72d02aea9924ebf6224ff9bcee2281e7a 100644
(file)
--- 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 n
z
, @no_new_frame REL
+ jr n
c
, @no_new_frame REL
; if new frame: clear timer
xor a, a