From aaefeac377b7d0384134a75bbe5ea4225bf7c222 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 16 Nov 2006 12:25:55 +0000 Subject: [PATCH] fix first life set not broadcasted --- stepmania/src/PlayerStageStats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/PlayerStageStats.cpp b/stepmania/src/PlayerStageStats.cpp index 16b33182d5..40929dd92b 100644 --- a/stepmania/src/PlayerStageStats.cpp +++ b/stepmania/src/PlayerStageStats.cpp @@ -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