diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index b841204f93..276c48bb6d 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -310,7 +310,6 @@ void GameState::Reset() } m_bTemporaryEventMode = false; - m_bStatsCommitted = false; LIGHTSMAN->SetLightsMode( LIGHTSMODE_ATTRACT ); @@ -630,10 +629,8 @@ void GameState::CancelStage() void GameState::CommitStageStats() { - /* Don't commit stats twice. */ - if( m_bStatsCommitted || m_bDemonstrationOrJukebox ) + if( m_bDemonstrationOrJukebox ) return; - m_bStatsCommitted = true; STATSMAN->CommitStatsToProfiles( &STATSMAN->m_CurStageStats ); @@ -655,8 +652,6 @@ void GameState::CommitStageStats() * song. Might be called more than once. */ void GameState::FinishStage() { - m_bStatsCommitted = false; - // Increment the stage counter. ASSERT( m_iNumStagesOfThisSong >= 1 && m_iNumStagesOfThisSong <= 3 ); const int iOldStageIndex = m_iCurrentStageIndex; diff --git a/stepmania/src/GameState.h b/stepmania/src/GameState.h index ecfb4bff4f..daa8776a6d 100644 --- a/stepmania/src/GameState.h +++ b/stepmania/src/GameState.h @@ -209,10 +209,6 @@ public: void ResetStageStatistics(); // Call this when it's time to play a new stage. - // True if CommitStageStats() has been called and FinishStage() hasn't. - bool m_bStatsCommitted; - - // // Options stuff //