aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDenis Kasak2009-07-18 02:58:11 +0000
committerDenis Kasak2009-07-18 02:58:11 +0000
commit3cde84fec4a06c9a95d8f6e2f61a3a990c8f3bff (patch)
tree490e48eb0f20e6858ba55e855202d041ca484797 /engines
parentadf9e91e1fd1bc9e23147ef4ce100a5343a23ffa (diff)
downloadscummvm-rg350-3cde84fec4a06c9a95d8f6e2f61a3a990c8f3bff.tar.gz
scummvm-rg350-3cde84fec4a06c9a95d8f6e2f61a3a990c8f3bff.tar.bz2
scummvm-rg350-3cde84fec4a06c9a95d8f6e2f61a3a990c8f3bff.zip
Fixed bug where certain animations were played very fast when not played immediately when they are created.
svn-id: r42580
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/animation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index 74bd8c0534..12661aff66 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -33,7 +33,7 @@ Animation::Animation(DraciEngine *vm) : _vm(vm) {
_z = 0;
_relX = 0;
_relY = 0;
- _playing = false;
+ setPlaying(false);
_looping = false;
_tick = _vm->_system->getMillis();
_currentFrame = 0;
@@ -82,7 +82,7 @@ void Animation::nextFrame(bool force) {
// The animation is also restarted to frame zero
if ((_currentFrame == getFramesNum() - 1) && !_looping) {
_currentFrame = 0;
- _playing = false;
+ setPlaying(false);
} else {
_vm->_screen->getSurface()->markDirtyRect(frameRect);
_currentFrame = nextFrameNum();
@@ -150,6 +150,7 @@ bool Animation::isPlaying() {
}
void Animation::setPlaying(bool playing) {
+ _tick = _vm->_system->getMillis();
_playing = playing;
}