diff options
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r-- | src/simpleanimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp index 5baf8fc9..a0aedc06 100644 --- a/src/simpleanimation.cpp +++ b/src/simpleanimation.cpp @@ -29,9 +29,9 @@ void SimpleAnimation::update(unsigned int timePassed) { mAnimationTime+=timePassed; - if (mAnimationTime > mCurrentFrame->delay) + while (mAnimationTime > mCurrentFrame->delay) { - mAnimationTime = 0; + mAnimationTime -= mCurrentFrame->delay; mAnimationPhase++; if (mAnimationPhase >= mAnimation->getLength()) { |