fix attract sounds play when they shouldn't if two ScreenDemonstrations in a row

This commit is contained in:
Chris Danford
2005-06-15 02:01:09 +00:00
parent 64690cdb40
commit 9c59962805
2 changed files with 4 additions and 7 deletions
-6
View File
@@ -53,10 +53,6 @@ void ScreenDemonstration::Init()
GAMESTATE->m_PlayMode = PLAY_MODE_REGULAR;
/* If needed, turn sound off. */
if( !GAMESTATE->IsTimeToPlayAttractSounds() )
SOUNDMAN->SetPrefs( 0 ); // silent
ScreenJukebox::Init();
if( GAMESTATE->m_pCurSong == NULL ) // we didn't find a song.
@@ -87,8 +83,6 @@ void ScreenDemonstration::HandleScreenMessage( const ScreenMessage SM )
}
else if( SM == SM_GainFocus )
{
if( !GAMESTATE->IsTimeToPlayAttractSounds() )
SOUNDMAN->SetPrefs( 0 ); // silent
}
else if( SM == SM_LoseFocus )
{