From b52828ae5f8025624dc5923764908c6cf7224ee6 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 2 Jul 2001 20:04:02 +0000 Subject: [PATCH] --- source/map/map.cpp | 8 +++++++- source/map/map.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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;