fix initial life never set in life records

This commit is contained in:
Chris Danford
2006-11-16 12:26:16 +00:00
parent aaefeac377
commit 2bf058e511
+9
View File
@@ -254,6 +254,15 @@ void Player::Init(
m_pPrimaryScoreKeeper = pPrimaryScoreKeeper;
m_pSecondaryScoreKeeper = pSecondaryScoreKeeper;
// set initial life
if( m_pLifeMeter )
{
float fLife = m_pLifeMeter->GetLife();
m_pPlayerStageStats->SetLifeRecordAt( fLife, STATSMAN->m_CurStageStats.m_fStepsSeconds );
}
// TODO: Remove use of PlayerNumber.
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;