From e13f3acee34b37e79832022fac0bc45c705202ef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 7 Feb 2003 23:35:36 +0000 Subject: [PATCH] the beat at the beat 0 offset is ... beat 0! --- stepmania/src/Song.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index e46a431bac..f3ca13f11e 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -545,17 +545,10 @@ void Song::TidyUpData() GetDirListing( m_sSongDir + CString("*.avi"), arrayPossibleMovies ); GetDirListing( m_sSongDir + CString("*.mpg"), arrayPossibleMovies ); GetDirListing( m_sSongDir + CString("*.mpeg"), arrayPossibleMovies ); + /* Use this->GetBeatFromElapsedTime(0) instead of 0 to start when the + * music starts. */ if( arrayPossibleMovies.size() == 1 ) - { - CString sBGMovieFile = arrayPossibleMovies[0]; - - // calculate start beat of music - float fMusicStartBeat, fBPS; - bool bFreeze; - this->GetBeatAndBPSFromElapsedTime( -this->m_fBeat0OffsetInSeconds, fMusicStartBeat, fBPS, bFreeze ); - - this->AddBackgroundChange( BackgroundChange(fMusicStartBeat,sBGMovieFile) ); - } + this->AddBackgroundChange( BackgroundChange(0,arrayPossibleMovies[0]) ); } for( i=0; i