This commit is contained in:
Glenn Maynard
2004-02-04 06:45:56 +00:00
parent 508bc0f6d4
commit 72bbadb18b
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -322,6 +322,7 @@ void RageSounds::Update( float fDeltaTime )
if( !g_Playing->m_Music->IsPlaying() )
{
/* There's no song playing. Fake it. */
CHECKPOINT_M( ssprintf("%f, delta %f", GAMESTATE->m_fMusicSeconds, fDeltaTime) );
GAMESTATE->UpdateSongPosition( GAMESTATE->m_fMusicSeconds + fDeltaTime, g_Playing->m_Timing );
return;
}
@@ -340,6 +341,7 @@ void RageSounds::Update( float fDeltaTime )
{
/* We're still waiting for the new sound to start playing, so keep using the
* old timing data and fake the time. */
CHECKPOINT_M( ssprintf("%f, delta %f", GAMESTATE->m_fMusicSeconds, fDeltaTime) );
GAMESTATE->UpdateSongPosition( GAMESTATE->m_fMusicSeconds + fDeltaTime, g_Playing->m_Timing );
return;
}
@@ -367,6 +369,7 @@ void RageSounds::Update( float fDeltaTime )
sLastFile = ThisFile;
}
CHECKPOINT_M( ssprintf("%f", fSeconds) );
GAMESTATE->UpdateSongPosition( fSeconds, g_Playing->m_Timing, tm );
}