don't count high score DP for courses that aren't 100% fixed entries
This commit is contained in:
@@ -752,6 +752,16 @@ bool Course::HasMods() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Course::AllSongsAreFixed() const
|
||||
{
|
||||
for( int i=0; i<m_entries.size(); i++ )
|
||||
{
|
||||
if( m_entries[i].type != COURSE_ENTRY_FIXED )
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void Course::ClearCache()
|
||||
{
|
||||
m_InfoCache.clear();
|
||||
|
||||
@@ -116,6 +116,7 @@ public:
|
||||
// Dereferences course_entries and returns only the playable Songs and Steps
|
||||
void GetCourseInfo( StepsType nt, vector<Info> &ci, CourseDifficulty cd = COURSE_DIFFICULTY_REGULAR ) const;
|
||||
bool HasMods() const;
|
||||
bool AllSongsAreFixed() const;
|
||||
|
||||
int GetEstimatedNumStages() const { return m_entries.size(); }
|
||||
bool HasCourseDifficulty( StepsType nt, CourseDifficulty cd ) const;
|
||||
|
||||
@@ -228,6 +228,11 @@ int Profile::GetTotalHighScoreDancePointsForStepsType( StepsType st ) const
|
||||
{
|
||||
const Course* pCourse = iter->first;
|
||||
ASSERT( pCourse );
|
||||
|
||||
// Don't count any course that has any entries that change over time.
|
||||
if( !pCourse->AllSongsAreFixed() )
|
||||
continue;
|
||||
|
||||
const HighScoresForACourse& h = iter->second;
|
||||
FOREACH_CourseDifficulty( cd )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user