fix sound not played in service menu if operator button is

pressed when attract sound is off
This commit is contained in:
Glenn Maynard
2007-05-03 05:42:36 +00:00
parent 3e6c2b3d7f
commit 688863f1aa
+8 -2
View File
@@ -26,8 +26,6 @@ ScreenAttract::ScreenAttract( bool bResetGameState )
void ScreenAttract::BeginScreen()
{
ScreenAttract::SetAttractVolume( !GAMESTATE->IsTimeToPlayAttractSounds() );
GAMESTATE->VisitAttractScreen( m_sName );
ScreenWithMenuElements::BeginScreen();
@@ -131,6 +129,14 @@ void ScreenAttract::HandleScreenMessage( const ScreenMessage SM )
if( bMusicChanging )
SOUND->StopMusic();
}
else if( SM == SM_GainFocus )
{
ScreenAttract::SetAttractVolume( !GAMESTATE->IsTimeToPlayAttractSounds() );
}
else if( SM == SM_LoseFocus )
{
ScreenAttract::SetAttractVolume( false );
}
ScreenWithMenuElements::HandleScreenMessage( SM );
}