diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sound/sound.h | 1 | ||||
-rw-r--r-- | src/ui/maindialog.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/sound/sound.h b/src/sound/sound.h index a2302c4..11eca89 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -178,6 +178,7 @@ class CSoundInterface /** Function called to add all music files to list */ inline void AddMusicFiles(std::string path) { m_soundPath = path; + CacheMusic("Intro.ogg"); CacheMusic("music010.ogg"); CacheMusic("music011.ogg"); }; diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index 092903d..699cb7b 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -747,7 +747,7 @@ pb->SetState(STATE_SHADOW); m_phase == PHASE_PROTO ) { if (!m_sound->IsPlayingMusic()) { - m_sound->PlayMusic(11, true); + m_sound->PlayMusic("Intro.ogg", false); } if ( m_phase == PHASE_TRAINER ) m_index = 0; @@ -1742,7 +1742,7 @@ pos.y -= 0.048f; if ( m_phase == PHASE_WELCOME1 ) { m_sound->StopMusic(); - m_sound->PlayMusic(11, false); + m_sound->PlayMusic("Intro.ogg", false); pos.x = 0.0f; pos.y = 0.0f; |