keep track of when the music position hasn't been updated at

all (which isn't the same as being at beat 0)
This commit is contained in:
Glenn Maynard
2003-02-07 23:49:07 +00:00
parent e13f3acee3
commit 3c572b29cb
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -96,9 +96,11 @@ void GameState::ResetLastRanking()
} }
} }
const float GameState::MUSIC_SECONDS_INVALID = -5000.0f;
void GameState::ResetMusicStatistics() void GameState::ResetMusicStatistics()
{ {
m_fMusicSeconds = 0; m_fMusicSeconds = MUSIC_SECONDS_INVALID;
m_fSongBeat = 0; m_fSongBeat = 0;
m_fCurBPS = 10; m_fCurBPS = 10;
m_bFreeze = false; m_bFreeze = false;
+1
View File
@@ -94,6 +94,7 @@ public:
float m_fCurBPS; float m_fCurBPS;
bool m_bFreeze; // in the middle of a freeze bool m_bFreeze; // in the middle of a freeze
bool m_bPastHereWeGo; 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 ResetMusicStatistics(); // Call this when it's time to play a new song. Clears the values above.
void UpdateSongPosition(float fPositionSeconds); void UpdateSongPosition(float fPositionSeconds);