Split off separate DemonstrationSound pref

This commit is contained in:
Chris Danford
2003-10-22 11:40:04 +00:00
parent 5635d934aa
commit 513f9709ca
5 changed files with 19 additions and 8 deletions
+3 -3
View File
@@ -73,7 +73,7 @@ ScreenDemonstration::ScreenDemonstration( CString sName ) : ScreenJukebox( sName
m_DancingState = STATE_DANCING;
this->PostScreenMessage( SM_BeginFadingOut, SECONDS_TO_SHOW );
if( !PREFSMAN->m_bAttractSound )
if( !PREFSMAN->m_bDemonstrationSound )
SOUNDMAN->SetPrefs( 0 ); // slient
}
@@ -103,7 +103,7 @@ void ScreenDemonstration::Input( const DeviceInput& DeviceI, const InputEventTyp
break; // don't fall through
m_soundMusic.Stop();
if( !PREFSMAN->m_bAttractSound )
if( !PREFSMAN->m_bDemonstrationSound )
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
break;
@@ -124,7 +124,7 @@ void ScreenDemonstration::HandleScreenMessage( const ScreenMessage SM )
return;
case SM_GoToNextScreen:
m_soundMusic.Stop();
if( !PREFSMAN->m_bAttractSound )
if( !PREFSMAN->m_bDemonstrationSound )
SOUNDMAN->SetPrefs( PREFSMAN->m_fSoundVolume ); // turn volume back on
GAMESTATE->Reset();