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
+1 -3
View File
@@ -173,8 +173,6 @@ ScreenTitleMenu::ScreenTitleMenu( CString sClassName ) : ScreenSelect( sClassNam
m_soundChange.Load( THEME->GetPathToS("ScreenTitleMenu change"),true );
m_soundSelect.Load( THEME->GetPathToS("Common start") );
m_soundInvalid.Load( THEME->GetPathToS("Common invalid") );
m_Choice = 0;
@@ -261,7 +259,7 @@ void ScreenTitleMenu::Input( const DeviceInput& DeviceI, const InputEventType ty
CString why;
if( !mc.IsPlayable( &why ) )
{
m_soundInvalid.Play();
SCREENMAN->PlayInvalidSound();
if( why != "" )
SCREENMAN->SystemMessage( why );
return;