aboutsummaryrefslogtreecommitdiff
path: root/saga/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/animation.cpp')
-rw-r--r--saga/animation.cpp8
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;