From 8770a98106e9a6cf9ed3dca3fd2fe5b862c305ec Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 9 Oct 2002 18:14:29 +0000 Subject: [PATCH] Fixed bug in Song::GetElapsedSeconds from beat. Was causing problems with J-Paradise --- stepmania/src/Song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 8c1070ca86..642bc6524c 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -231,7 +231,7 @@ void Song::GetBeatAndBPSFromElapsedTime( float fElapsedTime, float &fBeatOut, fl // so do a binary search to get close to the correct elapsed time. float Song::GetElapsedTimeFromBeat( float fBeat ) const { - float fElapsedTimeBestGuess = 100; // seconds + float fElapsedTimeBestGuess = this->m_fMusicLengthSeconds/2; // seconds float fSecondsToMove = fElapsedTimeBestGuess; // seconds float fBeatOut, fBPSOut; bool bFreezeOut;