don't load multiple copies of "common start" or "common invalid" sound

This commit is contained in:
Chris Danford
2004-05-01 23:28:53 +00:00
parent df5cd5e813
commit 6590bd2d48
39 changed files with 37 additions and 79 deletions
+2 -4
View File
@@ -53,8 +53,6 @@ ScreenJukeboxMenu::ScreenJukeboxMenu( CString sClassName ) : ScreenWithMenuEleme
m_textExplanation.SetZoom( 0.7f );
this->AddChild( &m_textExplanation );
m_soundInvalid.Load( THEME->GetPathToS("Common invalid") );
SOUND->PlayMusic( THEME->GetPathToS("ScreenJukeboxMenu music") );
}
@@ -132,14 +130,14 @@ void ScreenJukeboxMenu::MenuStart( PlayerNumber pn )
{
/* No songs are available for the selected style, group, and difficulty. */
m_soundInvalid.Play();
SCREENMAN->PlayInvalidSound();
SCREENMAN->SystemMessage( "No songs available with these settings" );
return;
}
SOUND->StopMusic();
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
StartTransitioning( SM_GoToNextScreen );
}