diff --git a/stepmania/src/LifeMeterBar.cpp b/stepmania/src/LifeMeterBar.cpp index 3be0dc34ed..0ebe9a5559 100644 --- a/stepmania/src/LifeMeterBar.cpp +++ b/stepmania/src/LifeMeterBar.cpp @@ -18,6 +18,7 @@ #include #include "RageMath.h" #include "ThemeManager.h" +#include "song.h" // @@ -431,6 +432,9 @@ void LifeMeterBar::Update( float fDeltaTime ) { LifeMeter::Update( fDeltaTime ); + GAMESTATE->m_CurStageStats.SetLifeRecord( m_PlayerNumber, m_fLifePercentage, GAMESTATE->m_fSongBeat / GAMESTATE->m_pCurSong->m_fLastBeat ); + + // HACK: Tweaking these values is very difficulty. Update the // "physics" many times so that the spring motion appears faster diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index cd95db0aca..c7682b16ea 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -20,6 +20,9 @@ StageStats::StageStats() { memset( this, 0, sizeof(StageStats) ); + for( int p=0; p