aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/animation.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-06-07 12:39:38 +0000
committerFilippos Karapetis2007-06-07 12:39:38 +0000
commit7e29cf35de64988c28e3770501b95be49a5a84d5 (patch)
tree6532a9c3941c458286d3ea0c19968316c8f13de6 /engines/saga/animation.cpp
parent7bd240ea8f63401d0cbb9a459e34e01619f6957d (diff)
downloadscummvm-rg350-7e29cf35de64988c28e3770501b95be49a5a84d5.tar.gz
scummvm-rg350-7e29cf35de64988c28e3770501b95be49a5a84d5.tar.bz2
scummvm-rg350-7e29cf35de64988c28e3770501b95be49a5a84d5.zip
Limited frame count hack to apply to videos only
svn-id: r27167
Diffstat (limited to 'engines/saga/animation.cpp')
-rw-r--r--engines/saga/animation.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp
index 88caec96c9..d254c69078 100644
--- a/engines/saga/animation.cpp
+++ b/engines/saga/animation.cpp
@@ -363,10 +363,11 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) {
return;
}
- // HACK: the animation starts playing before sfwaitframes is called in IHNM, which
- // causes the game to wait forever. Raise the framecount by 10 to avoid lockup
+ // HACK: When a video is played in IHNM, the animation starts playing before sfwaitframes
+ // is called, which causes the game to wait forever. Raise the framecount by 10 to avoid lockup
// TODO: remove this hack
- _vm->_frameCount += 10;
+ if (_vm->_interface->getMode() == kPanelVideo)
+ _vm->_frameCount += 10;
if (anim->completed < anim->cycles) {
frame = anim->currentFrame;