Fixed bug which caused animations to sometimes be played too fast if the engine was busier than usual (like when redrawing the whole screen when returning from minimized state).

svn-id: r42585
This commit is contained in:
Denis Kasak 2009-07-18 05:21:01 +00:00
parent 128fe6ea21
commit a44cda5525

View file

@ -86,7 +86,7 @@ void Animation::nextFrame(bool force) {
} else {
_vm->_screen->getSurface()->markDirtyRect(frameRect);
_currentFrame = nextFrameNum();
_tick += frame->getDelay();
_tick = _vm->_system->getMillis();
}
}