add CourseDifficulty, use it instead of a bDifficult flag

This commit is contained in:
Chris Danford
2004-01-14 06:11:28 +00:00
parent fd1acf4cda
commit 1cb29a82b5
9 changed files with 111 additions and 74 deletions
+14 -8
View File
@@ -820,11 +820,14 @@ void ScreenSelectMusic::EasierDifficulty( PlayerNumber pn )
if( !GAMESTATE->IsHumanPlayer(pn) )
return;
if( m_MusicWheel.GetSelectedType() == TYPE_COURSE && GAMESTATE->m_bDifficultCourses )
if( m_MusicWheel.GetSelectedType() == TYPE_COURSE )
{
m_soundDifficultyEasier.Play();
GAMESTATE->m_bDifficultCourses = false;
AfterMusicChange();
if( GAMESTATE->m_CourseDifficulty > 0 )
{
m_soundDifficultyEasier.Play();
GAMESTATE->m_CourseDifficulty = (CourseDifficulty)(GAMESTATE->m_CourseDifficulty-1);
AfterMusicChange();
}
return;
}
@@ -852,11 +855,14 @@ void ScreenSelectMusic::HarderDifficulty( PlayerNumber pn )
if( !GAMESTATE->IsHumanPlayer(pn) )
return;
if( m_MusicWheel.GetSelectedType() == TYPE_COURSE && !GAMESTATE->m_bDifficultCourses )
if( m_MusicWheel.GetSelectedType() == TYPE_COURSE )
{
m_soundDifficultyHarder.Play();
GAMESTATE->m_bDifficultCourses = true;
AfterMusicChange();
if( GAMESTATE->m_CourseDifficulty < NUM_COURSE_DIFFICULTIES-1 )
{
m_soundDifficultyHarder.Play();
GAMESTATE->m_CourseDifficulty = (CourseDifficulty)(GAMESTATE->m_CourseDifficulty+1);
AfterMusicChange();
}
return;
}