Skip to content

Commit 5c63661

Browse files
committed
Small bugfix which makes animations play faster
1 parent a8c4ab9 commit 5c63661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/spritetools_render.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void ST_RenderAnimationPlay(st_animation *animation, int x, int y)
289289
animation->ftn++;
290290
if (animation->fpf >= 0)
291291
{
292-
if (animation->ftn > animation->fpf)
292+
if (animation->ftn >= animation->fpf)
293293
{
294294
animation->ftn = 0;
295295
ST_RenderAnimationNext(animation, x, y);
@@ -301,7 +301,7 @@ void ST_RenderAnimationPlay(st_animation *animation, int x, int y)
301301
}
302302
else
303303
{
304-
if (animation->ftn > -1 * animation->fpf)
304+
if (animation->ftn >= -1 * animation->fpf)
305305
{
306306
animation->ftn = 0;
307307
ST_RenderAnimationPrevious(animation, x, y);

0 commit comments

Comments
 (0)