Finish up test chamber 11

This commit is contained in:
James Lambert 2023-04-04 06:24:59 -06:00
parent 392f9adf9c
commit 2cf701f863
2 changed files with 1 additions and 1 deletions

View file

@ -190,7 +190,7 @@ void skAnimatorStep(struct SKAnimator* animator, float deltaTime) {
float duration = currentClip->nFrames / currentClip->fps; float duration = currentClip->nFrames / currentClip->fps;
if (animator->currentTime >= duration || animator->currentTime < 0.0f) { if ((animator->currentTime >= duration && deltaTime) > 0.0f || (animator->currentTime < 0.0f && deltaTime < 0.0f)) {
if (animator->flags & SKAnimatorFlagsLoop) { if (animator->flags & SKAnimatorFlagsLoop) {
animator->currentTime = mathfMod(animator->currentTime, duration); animator->currentTime = mathfMod(animator->currentTime, duration);
} else { } else {