From a51186e70c7ce86df6f49f829bc2fa283abbbbe9 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 20 Mar 2004 19:24:38 +0000 Subject: [PATCH] don't count high score DP for courses that aren't 100% fixed entries --- stepmania/src/Course.cpp | 10 ++++++++++ stepmania/src/Course.h | 1 + stepmania/src/Profile.cpp | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 00df087172..ca9a2e31c3 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -752,6 +752,16 @@ bool Course::HasMods() const return false; } +bool Course::AllSongsAreFixed() const +{ + for( int i=0; i &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; diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 000751a9ac..89fdf7efbb 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -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 ) {