fix category feats show wrong score on ScreenNameEntryTraditional

store both iScore and fPercentDP for courses and categories
This commit is contained in:
Chris Danford
2003-12-10 11:35:34 +00:00
parent c34c2c5aec
commit ea8c87c46f
8 changed files with 80 additions and 47 deletions
+6 -2
View File
@@ -25,7 +25,7 @@
#include "GameManager.h"
#include "NoteDataUtil.h"
#include "ProfileManager.h"
#include "PrefsManager.h"
Steps::Steps()
{
@@ -349,7 +349,10 @@ void SortStepsByTypeAndDifficulty( vector<Steps*> &arraySongPointers )
bool Steps::MemCardData::HighScore::operator>=( const Steps::MemCardData::HighScore& other ) const
{
return iScore >= other.iScore;
if( PREFSMAN->m_bPercentageScoring )
return fPercentDP >= other.fPercentDP;
else
return iScore >= other.iScore;
/* Make sure we treat AAAA as higher than AAA, even though the score
* is the same.
*
@@ -391,3 +394,4 @@ void Steps::AddHighScore( PlayerNumber pn, MemCardData::HighScore hs, int &iPers
iPersonalIndexOut = -1;
m_MemCardDatas[MEMORY_CARD_MACHINE].AddHighScore( hs, iMachineIndexOut );
}