diff options
author | Turmfalke <turmfalke@Turmfalke.(none)> | 2009-04-07 23:24:56 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-07 15:32:23 -0600 |
commit | 303c1f69761e90b83d4809e911f7785ec66b46aa (patch) | |
tree | 39d91dfb58e1b69f8b8b8f2a9370900159c16d8c /src/gui | |
parent | 3e8ed12a530426b3c649922452f42d9a2b2a8d89 (diff) | |
download | mana-303c1f69761e90b83d4809e911f7785ec66b46aa.tar.gz mana-303c1f69761e90b83d4809e911f7785ec66b46aa.tar.bz2 mana-303c1f69761e90b83d4809e911f7785ec66b46aa.tar.xz mana-303c1f69761e90b83d4809e911f7785ec66b46aa.zip |
restart background music after sound is enabled
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_audio.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp index 28a80b3d..6b9c49f7 100644 --- a/src/gui/setup_audio.cpp +++ b/src/gui/setup_audio.cpp @@ -30,6 +30,8 @@ #include "../configuration.h" #include "../log.h" #include "../sound.h" +#include "../map.h" +#include "../engine.h" #include "../utils/gettext.h" @@ -88,6 +90,8 @@ void Setup_Audio::apply() new OkDialog("Sound Engine", err); logger->log("Warning: %s", err); } + Map *currentMap = engine->getCurrentMap(); + sound.playMusic(currentMap->getProperty("music"), -1); } else { |