add missing breaks to SM_GainFocus and SM_LoseFocus
This commit is contained in:
@@ -129,9 +129,11 @@ void ScreenDemonstration::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
case SM_GainFocus:
|
case SM_GainFocus:
|
||||||
if( !GAMESTATE->IsTimeToPlayAttractSounds() )
|
if( !GAMESTATE->IsTimeToPlayAttractSounds() )
|
||||||
SOUNDMAN->SetPrefs( 0 ); // silent
|
SOUNDMAN->SetPrefs( 0 ); // silent
|
||||||
|
break;
|
||||||
|
|
||||||
case SM_LoseFocus:
|
case SM_LoseFocus:
|
||||||
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
|
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
|
||||||
|
break;
|
||||||
|
|
||||||
case SM_GoToNextScreen:
|
case SM_GoToNextScreen:
|
||||||
SOUND->StopMusic();
|
SOUND->StopMusic();
|
||||||
|
|||||||
Reference in New Issue
Block a user