diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index 6c87c32818..284f72d6e4 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -3913,6 +3913,8 @@ AreStageSongModsForced=AreStageSongModsForced GradeTierForExtra1="Grade_Tier03" GradeTierForExtra2="Grade_Tier03" AllowLateJoin=false +PersonalRecordFeats=true +CategoryRecordFeats=true [ScreenMiniMenuContext] Fallback="ScreenMiniMenu" diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index b782de5a43..3a2bd7a213 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1375,6 +1375,9 @@ bool GameState::ShowW1() const } } + +static ThemeMetric PERSONAL_RECORD_FEATS("GameState","PersonalRecordFeats"); +static ThemeMetric CATEGORY_RECORD_FEATS("GameState","CategoryRecordFeats"); void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsOut ) const { if( !IsHumanPlayer(pn) ) @@ -1453,7 +1456,7 @@ void GameState::GetRankingFeats( PlayerNumber pn, vector &asFeatsOu } // Find Personal Records - if( pProf ) + if( pProf && PERSONAL_RECORD_FEATS ) { HighScoreList &hsl = pProf->GetStepsHighScoreList(pSong,pSteps); for( unsigned j=0; j &asFeatsOu // Find Machine Category Records FOREACH_ENUM( RankingCategory, rc ) { + if( !CATEGORY_RECORD_FEATS ) + continue; HighScoreList &hsl = PROFILEMAN->GetMachineProfile()->GetCategoryHighScoreList( st, rc ); for( unsigned j=0; j &asFeatsOu // Find Personal Category Records FOREACH_ENUM( RankingCategory, rc ) { - if( pProf ) + if( !CATEGORY_RECORD_FEATS ) + continue; + + if( pProf && PERSONAL_RECORD_FEATS ) { HighScoreList &hsl = pProf->GetCategoryHighScoreList( st, rc ); for( unsigned j=0; j &asFeatsOu } // Find Personal Records - if( PROFILEMAN->IsPersistentProfile( pn ) ) + if( PERSONAL_RECORD_FEATS && PROFILEMAN->IsPersistentProfile(pn) ) { HighScoreList &hsl = pProf->GetCourseHighScoreList( pCourse, pTrail ); for( unsigned i=0; i