diff options
author | Andrew Kurushin | 2005-06-15 19:14:19 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-06-15 19:14:19 +0000 |
commit | c72e77885eb81f24bbe77e3a19e286e743804fd4 (patch) | |
tree | b9d435da8f755ea51264c3b82d81ac15e92e9eac /saga | |
parent | 1386108adb32b13269d4f67a15c4a16b2bffb3bd (diff) | |
download | scummvm-rg350-c72e77885eb81f24bbe77e3a19e286e743804fd4.tar.gz scummvm-rg350-c72e77885eb81f24bbe77e3a19e286e743804fd4.tar.bz2 scummvm-rg350-c72e77885eb81f24bbe77e3a19e286e743804fd4.zip |
fix animation loop
svn-id: r18396
Diffstat (limited to 'saga')
-rw-r--r-- | saga/animation.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp index 8aa1dcecd0..1b89969e64 100644 --- a/saga/animation.cpp +++ b/saga/animation.cpp @@ -206,14 +206,9 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) { if (anim->linkId != -1) { // If this animation has a link, follow it anim->currentFrame = 0; + anim->completed = 0; anim->state = ANIM_PAUSE; -/* linkAnim = getAnimation(anim->linkId); - - linkAnim->currentFrame = 0; - linkAnim->state = ANIM_PLAYING; - - animId = anim->linkId;*/ } else { // No link, stop playing anim->currentFrame = anim->maxFrame; @@ -237,6 +232,7 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) { debug(5, "Animation ended going to %d", anim->linkId); linkAnim->currentFrame = 0; + linkAnim->completed = 0; linkAnim->state = ANIM_PLAYING; animId = anim->linkId; frameTime = 0; |