Limited frame count hack to apply to videos only

svn-id: r27167
This commit is contained in:
Filippos Karapetis 2007-06-07 12:39:38 +00:00
parent 7bd240ea8f
commit 7e29cf35de

View File

@ -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;