Skip to content

Commit 10593e5

Browse files
committed
comment
1 parent d4458a3 commit 10593e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sprite_eng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,9 @@ bool SPR_isAnimationDone(Sprite* sprite)
12081208
// for debug
12091209
checkSpriteValid(sprite, "SPR_isAnimationDone");
12101210

1211-
// check for animation done state (mainly used for frame change callback) or
1211+
// when we are in the frame change callback we need to test for the 'animation done state'
12121212
return (sprite->status & STATE_ANIMATION_DONE) ||
1213-
// if we are on last tick from last frame (if auto animation is disabled then only test for last frame)
1213+
// otherwise we just check if we are on last frame tick (if auto animation is disabled then only test for last frame)
12141214
((sprite->frameInd == (sprite->animation->numFrame - 1)) && ((sprite->timer == 1) || (sprite->timer == -1)));
12151215
}
12161216

0 commit comments

Comments
 (0)