MusicBannerWheel Comparison Fixes

This commit is contained in:
Andrew Livy
2003-09-15 22:21:18 +00:00
parent e164953d02
commit f598a50e6f
2 changed files with 10 additions and 3 deletions
+8 -3
View File
@@ -334,9 +334,14 @@ void MusicBannerWheel::PlayMusicSample()
Song* pSong = GetSelectedSong();
if( pSong && pSong->HasMusic() )
{
SOUND->PlayMusic(pSong->GetMusicPath(), true,
pSong->m_fMusicSampleStartSeconds,
pSong->m_fMusicSampleLengthSeconds);
if(SOUND->GetMusicPath().CompareNoCase(pSong->GetMusicPath())) // dont play the same sound over and over
{
SOUND->StopMusic();
SOUND->PlayMusic(pSong->GetMusicPath(), true,
pSong->m_fMusicSampleStartSeconds,
pSong->m_fMusicSampleLengthSeconds);
}
}
}