allow disabling disqualification

This commit is contained in:
Glenn Maynard
2004-03-28 20:08:43 +00:00
parent c328b85dc0
commit 74af6715dd
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -900,6 +900,9 @@ void GameState::RestoreSelectedOptions()
bool GameState::IsDisqualified( PlayerNumber pn )
{
if( !PREFSMAN->m_bDisqualification )
return false;
if( GAMESTATE->IsCourseMode() )
{
return GAMESTATE->m_PlayerOptions[pn].IsEasierForCourse(
+3
View File
@@ -162,6 +162,7 @@ PrefsManager::PrefsManager()
m_bDancePointsForOni = false;
m_bPercentageScoring = false;
m_fMinPercentageForHighScore = 0.5f;
m_bDisqualification = false;
m_bShowLyrics = true;
m_bAutogenSteps = true;
m_bAutogenGroupCourses = true;
@@ -441,6 +442,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk()
ini.GetValue( "Options", "DancePointsForOni", m_bDancePointsForOni );
ini.GetValue( "Options", "PercentageScoring", m_bPercentageScoring );
ini.GetValue( "Options", "MinPercentageForHighScore", m_fMinPercentageForHighScore );
ini.GetValue( "Options", "Disqualification", m_bDisqualification );
ini.GetValue( "Options", "ShowLyrics", m_bShowLyrics );
ini.GetValue( "Options", "AutogenSteps", m_bAutogenSteps );
ini.GetValue( "Options", "AutogenGroupCourses", m_bAutogenGroupCourses );
@@ -659,6 +661,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
ini.SetValue( "Options", "DancePointsForOni", m_bDancePointsForOni );
ini.SetValue( "Options", "PercentageScoring", m_bPercentageScoring );
ini.SetValue( "Options", "MinPercentageForHighScore", m_fMinPercentageForHighScore );
ini.SetValue( "Options", "Disqualification", m_bDisqualification );
ini.SetValue( "Options", "ShowLyrics", m_bShowLyrics );
ini.SetValue( "Options", "AutogenSteps", m_bAutogenSteps );
ini.SetValue( "Options", "AutogenGroupCourses", m_bAutogenGroupCourses );
+1
View File
@@ -157,6 +157,7 @@ public:
bool m_bDancePointsForOni; //DDR-Extreme style dance points instead of max2 percent
bool m_bPercentageScoring;
float m_fMinPercentageForHighScore;
bool m_bDisqualification;
bool m_bShowLyrics;
bool m_bAutogenSteps;
bool m_bAutogenGroupCourses;