diff options
author | Filippos Karapetis | 2007-08-25 23:29:53 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-08-25 23:29:53 +0000 |
commit | 8493c06d1dcc2ce0b7327f188a31a71a7e69316e (patch) | |
tree | be6c48fe4bbcb529d88c0e84d118ddcfca3fb4bb | |
parent | 7534944c832212169f67af63e73f57b0c0abce20 (diff) | |
download | scummvm-rg350-8493c06d1dcc2ce0b7327f188a31a71a7e69316e.tar.gz scummvm-rg350-8493c06d1dcc2ce0b7327f188a31a71a7e69316e.tar.bz2 scummvm-rg350-8493c06d1dcc2ce0b7327f188a31a71a7e69316e.zip |
Always reset an animation when it's done playing
svn-id: r28737
-rw-r--r-- | engines/saga/animation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp index 0438fb25ac..13174ba38c 100644 --- a/engines/saga/animation.cpp +++ b/engines/saga/animation.cpp @@ -500,6 +500,9 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) { _vm->_frameCount += 100; // make sure the waiting thread stops waiting // Animation done playing anim->state = ANIM_PAUSE; + anim->currentFrame = 0; + anim->completed = 0; + if (anim->linkId == -1) { if (anim->flags & ANIM_FLAG_ENDSCENE) { // This animation ends the scene @@ -510,9 +513,6 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) { _vm->_events->queue(&event); } return; - } else { - anim->currentFrame = 0; - anim->completed = 0; } } |