From a01f4db6a973053e4a8c5c236b304803ae26ab39 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 18 Jan 2004 06:46:54 +0000 Subject: [PATCH] better timestamping --- stepmania/src/ScreenGameplay.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 3a8020505c..37c13a81d5 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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 ) {