diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index f688a06e57..790d0a9c52 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -22,6 +22,7 @@ void PlayerStageStats::Init() fSecondsBeforeFail = 0; iSongsPassed = iSongsPlayed = 0; iTotalError = 0; + fCaloriesBurned = 0; ZERO( iTapNoteScores ); ZERO( iHoldNoteScores ); @@ -58,6 +59,7 @@ void PlayerStageStats::AddStats( const PlayerStageStats& other ) iSongsPassed += other.iSongsPassed; iSongsPlayed += other.iSongsPlayed; iTotalError += other.iTotalError; + fCaloriesBurned += other.fCaloriesBurned; const float fOtherFirstSecond = other.fFirstSecond + fLastSecond; const float fOtherLastSecond = other.fLastSecond + fLastSecond; diff --git a/stepmania/src/StageStats.h b/stepmania/src/StageStats.h index 3da12e0842..2c6e63f6e3 100644 --- a/stepmania/src/StageStats.h +++ b/stepmania/src/StageStats.h @@ -51,6 +51,9 @@ struct PlayerStageStats int iSongsPlayed; int iTotalError; + // workout + float fCaloriesBurned; + map fLifeRecord; void SetLifeRecordAt( float fLife, float fSecond ); void GetLifeRecord( float *fLifeOut, int iNumSamples ) const;