diff options
-rw-r--r-- | src/gui/setup_audio.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp index 9da74c2e..476d7b9a 100644 --- a/src/gui/setup_audio.cpp +++ b/src/gui/setup_audio.cpp @@ -28,6 +28,8 @@ #include "gui/widgets/layouthelper.h" #include "gui/widgets/slider.h" +#include "engine.h" +#include "map.h" #include "configuration.h" #include "log.h" #include "sound.h" @@ -88,6 +90,9 @@ void Setup_Audio::apply() try { sound.init(); + Map *currentMap = engine->getCurrentMap(); + if (currentMap) + sound.playMusic(currentMap->getProperty("music")); } catch (const char *err) { |