[Scummvm-cvs-logs] SF.net SVN: scummvm:[42580] scummvm/branches/gsoc2009-draci/engines/draci/ animation.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Sat Jul 18 04:58:11 CEST 2009
Revision: 42580
http://scummvm.svn.sourceforge.net/scummvm/?rev=42580&view=rev
Author: dkasak13
Date: 2009-07-18 02:58:11 +0000 (Sat, 18 Jul 2009)
Log Message:
-----------
Fixed bug where certain animations were played very fast when not played immediately when they are created.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp 2009-07-18 02:53:37 UTC (rev 42579)
+++ scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp 2009-07-18 02:58:11 UTC (rev 42580)
@@ -33,7 +33,7 @@
_z = 0;
_relX = 0;
_relY = 0;
- _playing = false;
+ setPlaying(false);
_looping = false;
_tick = _vm->_system->getMillis();
_currentFrame = 0;
@@ -82,7 +82,7 @@
// 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 @@
}
void Animation::setPlaying(bool playing) {
+ _tick = _vm->_system->getMillis();
_playing = playing;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list