This commit is contained in:
Chris Danford
2006-06-12 09:15:39 +00:00
parent 5de6202367
commit cdfae39494
2 changed files with 5 additions and 5 deletions
+4 -3
View File
@@ -126,10 +126,11 @@ void ScoreDisplayLifeTime::OnJudgment( HoldNoteScore hns, TapNoteScore tns )
void ScoreDisplayLifeTime::PlayGainLoss( const RString &sCommand, float fDeltaLifeSecs )
{
RString s;
if( fDeltaLifeSecs != 0 )
s = ssprintf( "%+1.1fs", fDeltaLifeSecs);
if( fDeltaLifeSecs == 0 )
return; // don't animate if no change
RString s = ssprintf( "%+1.1fs", fDeltaLifeSecs);
m_textDeltaSeconds.SetText( s );
m_textDeltaSeconds.FinishTweening();
m_textDeltaSeconds.PlayCommand( sCommand );
}