From e8cbdd860b0b0ec1809b3ea5d7da067520b57677 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 21 Apr 2006 00:33:55 +0000 Subject: [PATCH] keep track of last judgment(for XML Judgment --- stepmania/src/PlayerStageStats.cpp | 4 +++- stepmania/src/PlayerStageStats.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/PlayerStageStats.cpp b/stepmania/src/PlayerStageStats.cpp index ec30f49cf4..4e32c244ff 100644 --- a/stepmania/src/PlayerStageStats.cpp +++ b/stepmania/src/PlayerStageStats.cpp @@ -31,9 +31,11 @@ void PlayerStageStats::Init() iCurCombo = iMaxCombo = iCurMissCombo = iScore = iBonus = iMaxScore = iCurMaxScore = 0; iSongsPassed = iSongsPlayed = 0; iTotalError = 0; - fCaloriesBurned = 0; iTotalError = 0; fLifeRemainingSeconds = 0; + fCaloriesBurned = 0; + tnsLast = TNS_INVALID; + hnsLast = HNS_INVALID; ZERO( iTapNoteScores ); ZERO( iHoldNoteScores ); diff --git a/stepmania/src/PlayerStageStats.h b/stepmania/src/PlayerStageStats.h index b77fc82895..773868cefa 100644 --- a/stepmania/src/PlayerStageStats.h +++ b/stepmania/src/PlayerStageStats.h @@ -62,6 +62,9 @@ public: // workout float fCaloriesBurned; + TapNoteScore tnsLast; + HoldNoteScore hnsLast; + map fLifeRecord; void SetLifeRecordAt( float fLife, float fStepsSecond ); void GetLifeRecord( float *fLifeOut, int iNumSamples, float fStepsEndSecond ) const;