diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 749ea7bc98..6946232c1f 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -96,9 +96,11 @@ void GameState::ResetLastRanking() } } +const float GameState::MUSIC_SECONDS_INVALID = -5000.0f; + void GameState::ResetMusicStatistics() { - m_fMusicSeconds = 0; + m_fMusicSeconds = MUSIC_SECONDS_INVALID; m_fSongBeat = 0; m_fCurBPS = 10; m_bFreeze = false; diff --git a/stepmania/src/GameState.h b/stepmania/src/GameState.h index 193fa62a36..ec36f84e85 100644 --- a/stepmania/src/GameState.h +++ b/stepmania/src/GameState.h @@ -94,6 +94,7 @@ public: float m_fCurBPS; bool m_bFreeze; // in the middle of a freeze bool m_bPastHereWeGo; + static const float MUSIC_SECONDS_INVALID; void ResetMusicStatistics(); // Call this when it's time to play a new song. Clears the values above. void UpdateSongPosition(float fPositionSeconds);