aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/draci.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp
index 7e892a7e1e..88fe731b40 100644
--- a/engines/draci/draci.cpp
+++ b/engines/draci/draci.cpp
@@ -196,9 +196,11 @@ int DraciEngine::go() {
}
// 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);
}