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 -2
View File
@@ -116,7 +116,6 @@ ScreenSelectDifficulty::ScreenSelectDifficulty( CString sClassName ) : ScreenSel
this->AddChild( &m_framePages );
m_soundChange.Load( THEME->GetPathToS( m_sName + " change") );
m_soundSelect.Load( THEME->GetPathToS( "Common start") );
m_soundDifficult.Load( ANNOUNCER->GetPathTo("select difficulty challenge") );
m_fLockInputTime = LOCK_INPUT_SECONDS;
@@ -384,7 +383,7 @@ void ScreenSelectDifficulty::MenuStart( PlayerNumber pn )
if( bPlaySelect )
{
SOUND->PlayOnceFromAnnouncer( ssprintf("ScreenSelectDifficulty comment %s",mc.m_sName.c_str()) );
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
}
int p;