fix name entry wheel score rounded up instead of truncated

This commit is contained in:
Chris Danford
2005-04-19 04:26:10 +00:00
parent 5b9ab7244b
commit 72edfd5d61
+1 -1
View File
@@ -63,7 +63,7 @@ void HighScoreWheelItem::Load( int iRankIndex, const HighScore& hs )
m_textScore.SetName( "Score" );
m_textScore.LoadFromFont( THEME->GetPathF(m_sName,"score") );
if( PREFSMAN->m_bPercentageScoring )
m_textScore.SetText( ssprintf("%.2f%%", hs.fPercentDP*100) );
m_textScore.SetText( PercentageDisplay::FormatPercentScore(hs.fPercentDP) );
else
m_textScore.SetText( ssprintf("%i", hs.iScore) );
m_textScore.SetShadowLength( 2 );