better timestamping

This commit is contained in:
Glenn Maynard
2004-01-18 06:46:54 +00:00
parent 4365b2b496
commit a01f4db6a9
+6 -2
View File
@@ -1108,8 +1108,12 @@ void ScreenGameplay::Update( float fDeltaTime )
* us not to update the time here. (In that case, we've already created
* a new ScreenJukebox and reset music statistics, and if we do this then
* we'll un-reset them.) */
if(m_soundMusic.IsPlaying())
GAMESTATE->UpdateSongPosition( m_soundMusic.GetPositionSeconds(), GAMESTATE->m_pCurSong->m_Timing );
if( m_soundMusic.IsPlaying() )
{
RageTimer tm;
const float fSeconds = m_soundMusic.GetPositionSeconds( NULL, &tm );
GAMESTATE->UpdateSongPosition( fSeconds, GAMESTATE->m_pCurSong->m_Timing, tm );
}
if( m_bZeroDeltaOnNextUpdate )
{