Fix music not stopping while spinning the wheel

This commit is contained in:
Glenn Maynard
2003-07-14 23:56:11 +00:00
parent 50fcf591d9
commit a0cf52df65
+9 -5
View File
@@ -844,11 +844,15 @@ void ScreenSelectMusic::AfterMusicChange()
case TYPE_SONG:
{
// Don't stop music if it's already playing the right file.
// SOUNDMAN->StopMusic();
m_fPlaySampleCountdown = SAMPLE_MUSIC_DELAY;
m_sSampleMusicToPlay = pSong->GetMusicPath();
m_fSampleStartSeconds = pSong->m_fMusicSampleStartSeconds;
m_fSampleLengthSeconds = pSong->m_fMusicSampleLengthSeconds;
if( SOUNDMAN->GetMusicPath() != pSong->GetMusicPath() )
{
SOUNDMAN->StopMusic();
m_fPlaySampleCountdown = SAMPLE_MUSIC_DELAY;
m_sSampleMusicToPlay = pSong->GetMusicPath();
m_fSampleStartSeconds = pSong->m_fMusicSampleStartSeconds;
m_fSampleLengthSeconds = pSong->m_fMusicSampleLengthSeconds;
}
for( int pn = 0; pn < NUM_PLAYERS; ++pn)
{