summaryrefslogtreecommitdiffstats
path: root/src/ui/maindialog.cpp
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-03-14 21:30:32 +0100
committererihel <erihel@gmail.com>2013-03-14 21:30:32 +0100
commit6c783b903392173a6a98048aad3d600e4dcfe103 (patch)
tree8a9077a1de546e8117dd76ec5ee085ddce62fb20 /src/ui/maindialog.cpp
parent47e7904bb7c4bdf8024a154602f7d1ede9b77387 (diff)
downloadcolobot-6c783b903392173a6a98048aad3d600e4dcfe103.tar.gz
colobot-6c783b903392173a6a98048aad3d600e4dcfe103.tar.bz2
colobot-6c783b903392173a6a98048aad3d600e4dcfe103.zip
* Fix for issue #122 with sound not being played in menu after playing mission
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r--src/ui/maindialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index fede0b7..a0b0e06 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -745,6 +745,10 @@ pb->SetState(STATE_SHADOW);
m_phase == PHASE_USER ||
m_phase == PHASE_PROTO )
{
+ if (!m_sound->IsPlayingMusic()) {
+ m_sound->PlayMusic(11, true);
+ }
+
if ( m_phase == PHASE_TRAINER ) m_index = 0;
if ( m_phase == PHASE_DEFI ) m_index = 1;
if ( m_phase == PHASE_MISSION ) m_index = 2;