diff options
author | krzys-h <krzys_h@interia.pl> | 2014-11-02 13:33:37 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-11-02 13:35:00 +0100 |
commit | 6d152d5aeedf8207897f751bfbd179d9994f39cf (patch) | |
tree | ff702f7992ca0c7149969194a35241eef6a3f283 /src/ui | |
parent | ec4b71eca2466004636a55f5bd4ab9e524e803c3 (diff) | |
download | colobot-6d152d5aeedf8207897f751bfbd179d9994f39cf.tar.gz colobot-6d152d5aeedf8207897f751bfbd179d9994f39cf.tar.bz2 colobot-6d152d5aeedf8207897f751bfbd179d9994f39cf.zip |
Fixed console spam when music files are not installed
Closes #359
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/maindialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index 4b1c8f2..0bb1e36 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -707,7 +707,7 @@ void CMainDialog::ChangePhase(Phase phase) m_phase != PHASE_SETUPcs && m_phase != PHASE_SETUPss ) { - if (!m_sound->IsPlayingMusic()) + if (!m_sound->IsPlayingMusic() && m_sound->IsCachedMusic("Intro1.ogg")) { m_sound->PlayMusic("Intro1.ogg", false); } @@ -733,7 +733,7 @@ void CMainDialog::ChangePhase(Phase phase) } if ( m_phase == PHASE_TRAINER ) strcpy(m_sceneName, "exercises"); - if ( m_phase == PHASE_DEFI ) strcpy(m_sceneName, "challenges" ); + if ( m_phase == PHASE_DEFI ) strcpy(m_sceneName, "challenges"); if ( m_phase == PHASE_MISSION ) strcpy(m_sceneName, "missions"); if ( m_phase == PHASE_FREE ) strcpy(m_sceneName, "freemissions"); if ( m_phase == PHASE_USER ) strcpy(m_sceneName, "custom"); @@ -1760,7 +1760,7 @@ bool CMainDialog::EventProcess(const Event &event) m_phase != PHASE_SETUPcs && m_phase != PHASE_SETUPss ) { - if (!m_sound->IsPlayingMusic()) + if (!m_sound->IsPlayingMusic() && m_sound->IsCachedMusic("Intro2.ogg")) { m_sound->PlayMusic("Intro2.ogg", true); } |