summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTurmfalke <turmfalke@Turmfalke.(none)>2009-04-07 23:24:56 +0200
committerJared Adams <jaxad0127@gmail.com>2009-04-07 15:32:23 -0600
commit303c1f69761e90b83d4809e911f7785ec66b46aa (patch)
tree39d91dfb58e1b69f8b8b8f2a9370900159c16d8c
parent3e8ed12a530426b3c649922452f42d9a2b2a8d89 (diff)
downloadmana-303c1f69761e90b83d4809e911f7785ec66b46aa.tar.gz
mana-303c1f69761e90b83d4809e911f7785ec66b46aa.tar.bz2
mana-303c1f69761e90b83d4809e911f7785ec66b46aa.tar.xz
mana-303c1f69761e90b83d4809e911f7785ec66b46aa.zip
restart background music after sound is enabled
-rw-r--r--src/gui/setup_audio.cpp4
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
{