allow per-player course difficulties (not well-tested yet, off by default)

This commit is contained in:
Glenn Maynard
2004-01-21 01:35:54 +00:00
parent ff7517e0f9
commit 6c71f9103f
12 changed files with 75 additions and 54 deletions
+13 -10
View File
@@ -259,20 +259,23 @@ void ScreenSelectCourse::Input( const DeviceInput& DeviceI, InputEventType type,
return;
}
if( CodeDetector::EnteredEasierDifficulty(GameI.controller) &&
GAMESTATE->m_CourseDifficulty > 0 )
PlayerNumber pn = GAMESTATE->GetCurrentStyleDef()->ControllerToPlayerNumber( GameI.controller );
if( CodeDetector::EnteredEasierDifficulty(GameI.controller) )
{
m_soundChangeNotes.Play();
GAMESTATE->m_CourseDifficulty = (CourseDifficulty)(GAMESTATE->m_CourseDifficulty-1);
SCREENMAN->PostMessageToTopScreen(SM_SongChanged,0);
if( GAMESTATE->ChangeCourseDifficulty( pn, +1 ) )
{
m_soundChangeNotes.Play();
SCREENMAN->PostMessageToTopScreen(SM_SongChanged,0);
}
}
if( CodeDetector::EnteredHarderDifficulty(GameI.controller) &&
GAMESTATE->m_CourseDifficulty < NUM_COURSE_DIFFICULTIES-1 )
if( CodeDetector::EnteredHarderDifficulty(GameI.controller) )
{
m_soundChangeNotes.Play();
GAMESTATE->m_CourseDifficulty = (CourseDifficulty)(GAMESTATE->m_CourseDifficulty+1);
SCREENMAN->PostMessageToTopScreen(SM_SongChanged,0);
if( GAMESTATE->ChangeCourseDifficulty( pn, -1 ) )
{
m_soundChangeNotes.Play();
SCREENMAN->PostMessageToTopScreen(SM_SongChanged,0);
}
}