diff options
author | Filippos Karapetis | 2007-06-07 12:39:38 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-06-07 12:39:38 +0000 |
commit | 7e29cf35de64988c28e3770501b95be49a5a84d5 (patch) | |
tree | 6532a9c3941c458286d3ea0c19968316c8f13de6 /engines | |
parent | 7bd240ea8f63401d0cbb9a459e34e01619f6957d (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/saga/animation.cpp | 7 |
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; |