fix first life set not broadcasted

This commit is contained in:
Chris Danford
2006-11-16 12:25:55 +00:00
parent e224b1787c
commit aaefeac377
+2 -2
View File
@@ -323,6 +323,8 @@ void PlayerStageStats::SetLifeRecordAt( float fLife, float fStepsSecond )
// fSecond will always be greater than any value already in the map.
m_fLifeRecord[fStepsSecond] = fLife;
MESSAGEMAN->Broadcast( Message_LifeMeterChangedP1 );
//
// Memory optimization:
// If we have three consecutive records A, B, and C all with the same fLife,
@@ -345,8 +347,6 @@ void PlayerStageStats::SetLifeRecordAt( float fLife, float fStepsSecond )
if( A->second == B->second && B->second == C->second )
m_fLifeRecord.erase(B);
MESSAGEMAN->Broadcast( Message_LifeMeterChangedP1 );
}
float PlayerStageStats::GetLifeRecordAt( float fStepsSecond ) const