fix category feats show wrong score on ScreenNameEntryTraditional
store both iScore and fPercentDP for courses and categories
This commit is contained in:
@@ -36,6 +36,7 @@ const int DIFFICULT_METER_CHANGE = 2;
|
||||
/* Maximum lower value of ranges when difficult: */
|
||||
const int MAX_BOTTOM_RANGE = 10;
|
||||
|
||||
|
||||
/* -1 is the default parameter of a few Course calls; leaving it out indicates
|
||||
* to use GAMESTATE->m_bDifficultCourses. */
|
||||
static bool IsDifficult( int Difficult )
|
||||
@@ -1035,3 +1036,11 @@ void SortCoursePointerArrayByMostPlayed( vector<Course*> &arrayCoursePointers, M
|
||||
stable_sort( arrayCoursePointers.begin(), arrayCoursePointers.end(), CompareCoursePointersBySortValueDescending );
|
||||
course_sort_val.clear();
|
||||
}
|
||||
|
||||
bool Course::MemCardData::HighScore::operator>=( const HighScore& other ) const
|
||||
{
|
||||
if( PREFSMAN->m_bPercentageScoring )
|
||||
return fPercentDP >= other.fPercentDP;
|
||||
else
|
||||
return iScore >= other.iScore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user