On SelectDifficulty the "This mode is difficult" sound plays every switch from page 1 to page 2, not just the first time.

This commit is contained in:
Chris Danford
2002-10-20 20:03:28 +00:00
parent 5efe893685
commit ea9a5be821
2 changed files with 6 additions and 7 deletions
+4 -5
View File
@@ -168,9 +168,8 @@ ScreenSelectDifficulty::ScreenSelectDifficulty()
m_soundChange.Load( THEME->GetPathTo("Sounds", "select difficulty change") );
m_soundSelect.Load( THEME->GetPathTo("Sounds", "menu start") );
m_soundDifficult.Load( ANNOUNCER->GetPathTo("select difficulty challenge") );
m_bPlayedChallengeSound = false;
SOUND->PlayOnceStreamedFromDir( ANNOUNCER->GetPathTo("select difficulty intro") );
m_Menu.TweenOnScreenFromMenu( SM_None );
@@ -346,10 +345,10 @@ void ScreenSelectDifficulty::ChangeTo( PlayerNumber pn, int iSelectionWas, int i
}
if( !m_bPlayedChallengeSound && bChangedPagesFrom1To2 )
if( bChangedPagesFrom1To2 )
{
SOUND->PlayOnceStreamedFromDir( ANNOUNCER->GetPathTo("select difficulty challenge") );
m_bPlayedChallengeSound = true;
m_soundDifficult.Stop();
m_soundDifficult.PlayRandom();
}
if( bChangedPagesFrom1To2 || bChangedPagesFrom2To1 )