diff --git a/source/map/map.cpp b/source/map/map.cpp index a1e99ef1b..39b29fe1d 100644 --- a/source/map/map.cpp +++ b/source/map/map.cpp @@ -214,7 +214,7 @@ void CMapScene::init() CFader::setFadingIn(); CSoundMediator::setSong(CSoundMediator::SONG_MAPSCREEN); - CSoundMediator::playSong(); + m_musicStarted=false; } @@ -382,6 +382,12 @@ void CMapScene::think(int _frames) { if(!CFader::isFading()&&!m_readyToExit) { + if(m_musicStarted==false) + { + m_musicStarted=true; + CSoundMediator::playSong(); + } + int pad=PadGetDown(0); // Change chapter diff --git a/source/map/map.h b/source/map/map.h index 8c86a2adc..95bc75537 100644 --- a/source/map/map.h +++ b/source/map/map.h @@ -99,6 +99,7 @@ private: class FontBank *m_font; int m_readyToExit; + int m_musicStarted; char *m_screenImage; char *m_mapBackgroundImage;