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 -2
View File
@@ -193,7 +193,7 @@ void ScreenProfileOptions::MenuStart( PlayerNumber pn, const InputEventType type
const CString sName = GetSelectedProfileName();
if( sProfileID=="" )
SOUND->PlayOnce( THEME->GetPathToS("common invalid") );
SCREENMAN->PlayInvalidSound();
else
SCREENMAN->Prompt( SM_DoneDeleting, ssprintf("Delete profile %s '%s'?",sProfileID.c_str(),sName.c_str()), true );
break;
@@ -204,7 +204,7 @@ void ScreenProfileOptions::MenuStart( PlayerNumber pn, const InputEventType type
const CString sName = GetSelectedProfileName();
if( sProfileID=="" )
SOUND->PlayOnce( THEME->GetPathToS("common invalid") );
SCREENMAN->PlayInvalidSound();
else
SCREENMAN->TextEntry( SM_DoneRenaming, ssprintf("Rename profile %s '%s'",sProfileID.c_str(),sName.c_str()), sName, NULL );
break;