aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-06-11 12:14:06 +0000
committerFilippos Karapetis2007-06-11 12:14:06 +0000
commitdaff536420f5129265c74136c35f70742e13668f (patch)
tree27ac1df97862723d42834cb98469417ce04f004c
parent2084bd461079022f764d924d4a7db16348e2ee6d (diff)
downloadscummvm-rg350-daff536420f5129265c74136c35f70742e13668f.tar.gz
scummvm-rg350-daff536420f5129265c74136c35f70742e13668f.tar.bz2
scummvm-rg350-daff536420f5129265c74136c35f70742e13668f.zip
The waiting thread will no longer wait forever for some videos to finish in IHNM
svn-id: r27357
-rw-r--r--engines/saga/animation.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp
index b5fddf7c15..6d49d331f5 100644
--- a/engines/saga/animation.cpp
+++ b/engines/saga/animation.cpp
@@ -387,7 +387,13 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) {
}
if (anim->currentFrame > anim->maxFrame) {
- anim->currentFrame = anim->loopFrame;
+
+ if (_vm->_interface->getMode() == kPanelVideo) {
+ // Videos never loop
+ _vm->_frameCount++;
+ anim->currentFrame++;
+ } else
+ anim->currentFrame = anim->loopFrame;
if (anim->state == ANIM_STOPPING || anim->currentFrame == -1) {
anim->state = ANIM_PAUSE;