File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1208,9 +1208,9 @@ bool SPR_isAnimationDone(Sprite* sprite)
1208
1208
// for debug
1209
1209
checkSpriteValid (sprite , "SPR_isAnimationDone" );
1210
1210
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'
1212
1212
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)
1214
1214
((sprite -> frameInd == (sprite -> animation -> numFrame - 1 )) && ((sprite -> timer == 1 ) || (sprite -> timer == -1 )));
1215
1215
}
1216
1216
You can’t perform that action at this time.
0 commit comments