Move percent formatting into PlayerStageStats and apply the truncating rules in GetPercentScore(). The percent score that ends up in HighScore should match what is shown on the screen.

This commit is contained in:
Chris Danford
2007-09-14 08:50:29 +00:00
parent 71cca3a067
commit 77940f76a2
7 changed files with 41 additions and 36 deletions
+2 -2
View File
@@ -11,9 +11,9 @@
#include "Style.h"
#include "ActorUtil.h"
#include "Foreach.h"
#include "PercentageDisplay.h"
#include "LuaManager.h"
#include "XmlFile.h"
#include "PlayerStageStats.h"
#define SHIFT_X(p) THEME->GetMetricF(sMetricsGroup, ssprintf("ShiftP%iX", p+1))
#define SHIFT_Y(p) THEME->GetMetricF(sMetricsGroup, ssprintf("ShiftP%iY", p+1))
@@ -169,7 +169,7 @@ void PaneDisplay::SetContent( PaneContents c )
if( bIsPlayerEdit )
str = NOT_AVAILABLE;
else
str = PercentageDisplay::FormatPercentScore( val );
str = PlayerStageStats::FormatPercentScore( val );
break;
case SONG_NUM_STEPS:
case SONG_JUMPS: