Skip to content

Commit

Permalink
Small bugfix which makes animations play faster
Browse files Browse the repository at this point in the history
  • Loading branch information
BtheDestroyer committed Jan 2, 2017
1 parent a8c4ab9 commit 5c63661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/spritetools_render.c
Expand Up @@ -289,7 +289,7 @@ void ST_RenderAnimationPlay(st_animation *animation, int x, int y)
animation->ftn++;
if (animation->fpf >= 0)
{
if (animation->ftn > animation->fpf)
if (animation->ftn >= animation->fpf)
{
animation->ftn = 0;
ST_RenderAnimationNext(animation, x, y);
Expand All @@ -301,7 +301,7 @@ void ST_RenderAnimationPlay(st_animation *animation, int x, int y)
}
else
{
if (animation->ftn > -1 * animation->fpf)
if (animation->ftn >= -1 * animation->fpf)
{
animation->ftn = 0;
ST_RenderAnimationPrevious(animation, x, y);
Expand Down

0 comments on commit 5c63661

Please sign in to comment.