fix rounding error in displaying percent score

This commit is contained in:
Chris Danford
2004-10-18 03:00:12 +00:00
parent 791fe80ef9
commit 0634c55431
4 changed files with 21 additions and 9 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ void ScreenEvaluation::Init()
/* Use "ScreenEvaluation Percent" for the [metric set], but position and
* tween it with "PercentP1X", etc. */
m_Percent[p].SetName( "ScreenEvaluation Percent" );
m_Percent[p].Load( (PlayerNumber) p, &g_CurStageStats, true );
m_Percent[p].Load( p, &g_CurStageStats, true );
m_Percent[p].SetXY( THEME->GetMetricF(m_sName, ssprintf("PercentP%dX",p+1)),
THEME->GetMetricF(m_sName,ssprintf("PercentP%dY",p+1)) );
m_Percent[p].Command( THEME->GetMetric(m_sName,ssprintf("PercentP%dOnCommand",p+1)) );