From a43296fef9be9a57acd695ec324254958860ca5b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 9 Jul 2003 03:51:17 +0000 Subject: [PATCH] Fix invalid glyph showing negative scores in eval --- stepmania/src/ScreenEvaluation.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 0b4e7762ba..58b341a5b3 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -424,7 +424,11 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName, Type type ) : Screen(sCl { m_textDancePoints[p].LoadFromNumbers( THEME->GetPathToN("ScreenEvaluation percent") ); m_textDancePoints[p].EnableShadow( false ); - m_textDancePoints[p].SetText( ssprintf("%d", stageStats.iActualDancePoints[p]) ); + /* We don't have a hyphen. */ + if( stageStats.iActualDancePoints[p] < 0 ) + m_textDancePoints[p].SetText( ssprintf("0") ); + else + m_textDancePoints[p].SetText( ssprintf("%d", stageStats.iActualDancePoints[p]) ); m_textDancePoints[p].SetName( ssprintf("DancePointsP%d",p+1) ); UtilSetXYAndOnCommand( m_textDancePoints[p], "ScreenEvaluation" ); this->AddChild( &m_textDancePoints[p] );