cleanup survival elements

This commit is contained in:
Chris Danford
2005-04-21 11:16:01 +00:00
parent b9de560fdc
commit 371f97effe
22 changed files with 833 additions and 342 deletions
+3
View File
@@ -24,6 +24,8 @@ void PlayerStageStats::Init()
iSongsPassed = iSongsPlayed = 0;
iTotalError = 0;
fCaloriesBurned = 0;
iTotalError = 0;
fLifeRemainingSeconds = 0;
ZERO( iTapNoteScores );
ZERO( iHoldNoteScores );
@@ -63,6 +65,7 @@ void PlayerStageStats::AddStats( const PlayerStageStats& other )
iSongsPlayed += other.iSongsPlayed;
iTotalError += other.iTotalError;
fCaloriesBurned += other.fCaloriesBurned;
fLifeRemainingSeconds = other.fLifeRemainingSeconds; // don't accumulate
const float fOtherFirstSecond = other.fFirstSecond + fLastSecond;
const float fOtherLastSecond = other.fLastSecond + fLastSecond;