don't count high score DP for courses that aren't 100% fixed entries

This commit is contained in:
Chris Danford
2004-03-20 19:24:38 +00:00
parent 5bb79cdc0a
commit a51186e70c
3 changed files with 16 additions and 0 deletions
+10
View File
@@ -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();
+1
View File
@@ -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;
+5
View File
@@ -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 )
{