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
+4 -4
View File
@@ -260,18 +260,18 @@ void ScreenSelectCourse::Input( const DeviceInput& DeviceI, InputEventType type,
}
if( CodeDetector::EnteredEasierDifficulty(GameI.controller) &&
GAMESTATE->m_bDifficultCourses)
GAMESTATE->m_CourseDifficulty > 0 )
{
m_soundChangeNotes.Play();
GAMESTATE->m_bDifficultCourses = false;
GAMESTATE->m_CourseDifficulty = (CourseDifficulty)(GAMESTATE->m_CourseDifficulty-1);
SCREENMAN->PostMessageToTopScreen(SM_SongChanged,0);
}
if( CodeDetector::EnteredHarderDifficulty(GameI.controller) &&
!GAMESTATE->m_bDifficultCourses)
GAMESTATE->m_CourseDifficulty < NUM_COURSE_DIFFICULTIES-1 )
{
m_soundChangeNotes.Play();
GAMESTATE->m_bDifficultCourses = true;
GAMESTATE->m_CourseDifficulty = (CourseDifficulty)(GAMESTATE->m_CourseDifficulty+1);
SCREENMAN->PostMessageToTopScreen(SM_SongChanged,0);
}