[Scummvm-cvs-logs] SF.net SVN: scummvm:[42651] scummvm/branches/gsoc2009-draci/engines/draci/ draci.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Wed Jul 22 07:03:34 CEST 2009
Revision: 42651
http://scummvm.svn.sourceforge.net/scummvm/?rev=42651&view=rev
Author: dkasak13
Date: 2009-07-22 05:03:34 +0000 (Wed, 22 Jul 2009)
Log Message:
-----------
Check whether the walking map overlay is already in the desired state so we don't start/stop it over and over.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp 2009-07-22 05:00:11 UTC (rev 42650)
+++ scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp 2009-07-22 05:03:34 UTC (rev 42651)
@@ -196,9 +196,11 @@
}
// Show walking map overlay
- if (showWalkingMap) {
+ // If the walking map overlay is already in the wanted state don't
+ // start / stop it constantly
+ if (showWalkingMap && !_anims->getAnimation(kWalkingMapOverlay)->isPlaying()) {
_anims->play(kWalkingMapOverlay);
- } else {
+ } else if (!showWalkingMap && _anims->getAnimation(kWalkingMapOverlay)->isPlaying()) {
_anims->stop(kWalkingMapOverlay);
}
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