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:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user