From 421b1f42d2657d5598085df2a1376db4f6af539a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 7 Feb 2003 23:59:42 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenGameplay.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index addb2930ba..9a985abda0 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -691,12 +691,10 @@ bool ScreenGameplay::IsTimeToPlayTicks() const return false; float fPositionSeconds = GAMESTATE->m_fMusicSeconds; - float fSongBeat, fBPS; - bool bFreeze; // HACK: Play the sound a little bit early to account for the fact that the middle of the tick sounds occurs 0.015 seconds into playing. fPositionSeconds += (SOUNDMAN->GetPlayLatency()+g_fTickEarlySecondsCache) * m_soundMusic.GetPlaybackRate(); - GAMESTATE->m_pCurSong->GetBeatAndBPSFromElapsedTime( fPositionSeconds, fSongBeat, fBPS, bFreeze ); + float fSongBeat=GAMESTATE->m_pCurSong->GetBeatFromElapsedTime( fPositionSeconds ); int iRowNow = BeatToNoteRowNotRounded( fSongBeat ); iRowNow = max( 0, iRowNow );