display every time in seconds

This commit is contained in:
Chris Danford
2005-04-28 08:25:34 +00:00
parent b3a918f5b5
commit f47ebefa90
+2 -8
View File
@@ -126,20 +126,14 @@ void ScoreDisplayLifeTime::OnJudgment( HoldNoteScore hns, TapNoteScore tns )
} }
void ScoreDisplayLifeTime::PlayGainLoss( const CString &sCommand, float fDeltaLifeSecs ) void ScoreDisplayLifeTime::PlayGainLoss( const CString &sCommand, float fDeltaLifeSecs )
{
if( fDeltaLifeSecs != 0 )
{ {
CString s; CString s;
if( fabs(fDeltaLifeSecs) >= 1 ) if( fDeltaLifeSecs != 0 )
s = ssprintf( fDeltaLifeSecs>0 ? "+%.0fs" : "-%.0fs",fDeltaLifeSecs); s = ssprintf( fDeltaLifeSecs>0 ? "+%1.1fs" : "%1.1fs",fDeltaLifeSecs);
else
s = ssprintf( fDeltaLifeSecs>0 ? "+%.0fms" : "-%.0fms",fDeltaLifeSecs*1000);
m_textDeltaSeconds.SetText( s ); m_textDeltaSeconds.SetText( s );
m_textDeltaSeconds.PlayCommand( sCommand ); m_textDeltaSeconds.PlayCommand( sCommand );
} }
}
/* /*
* (c) 2001-2004 Chris Danford * (c) 2001-2004 Chris Danford