summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 860b1cbe4..af0fab18b 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -3283,7 +3283,12 @@ void LocalPlayer::updateCoords()
if (str.empty())
str = mMap->getMusicFile();
if (str != sound.getCurrentMusicFile())
- sound.playMusic(str);
+ {
+ if (str.empty())
+ sound.fadeOutMusic();
+ else
+ sound.fadeOutAndPlayMusic(str);
+ }
}
}