fix sound not played in service menu if operator button is
pressed when attract sound is off
This commit is contained in:
@@ -27,6 +27,7 @@ ScreenAttract::ScreenAttract( bool bResetGameState )
|
||||
void ScreenAttract::BeginScreen()
|
||||
{
|
||||
GAMESTATE->VisitAttractScreen( m_sName );
|
||||
ScreenAttract::SetAttractVolume( !GAMESTATE->IsTimeToPlayAttractSounds() );
|
||||
|
||||
ScreenWithMenuElements::BeginScreen();
|
||||
}
|
||||
@@ -129,10 +130,6 @@ 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 );
|
||||
|
||||
Reference in New Issue
Block a user