fix sound not played in service menu if operator button is
pressed when attract sound is off
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user