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
-1
View File
@@ -78,7 +78,6 @@ void LifeMeterTime::OnLoadSong()
const CourseEntry *pEntry = &pCourse->m_vEntries[GAMESTATE->GetCourseSongIndex()]; const CourseEntry *pEntry = &pCourse->m_vEntries[GAMESTATE->GetCourseSongIndex()];
m_fLifeTotalGainedSeconds += pEntry->fGainSeconds; m_fLifeTotalGainedSeconds += pEntry->fGainSeconds;
if( GAMESTATE->GetCourseSongIndex() > 0 )
m_soundGainLife.Play(); m_soundGainLife.Play();
} }
+4 -3
View File
@@ -126,10 +126,11 @@ void ScoreDisplayLifeTime::OnJudgment( HoldNoteScore hns, TapNoteScore tns )
void ScoreDisplayLifeTime::PlayGainLoss( const RString &sCommand, float fDeltaLifeSecs ) void ScoreDisplayLifeTime::PlayGainLoss( const RString &sCommand, float fDeltaLifeSecs )
{ {
RString s; if( fDeltaLifeSecs == 0 )
if( fDeltaLifeSecs != 0 ) return; // don't animate if no change
s = ssprintf( "%+1.1fs", fDeltaLifeSecs); RString s = ssprintf( "%+1.1fs", fDeltaLifeSecs);
m_textDeltaSeconds.SetText( s ); m_textDeltaSeconds.SetText( s );
m_textDeltaSeconds.FinishTweening();
m_textDeltaSeconds.PlayCommand( sCommand ); m_textDeltaSeconds.PlayCommand( sCommand );
} }