From 82d6a154edc4fe43ff27d3b417c85f630b43544d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 12 Jun 2006 07:17:54 +0000 Subject: [PATCH] Earliest start time is zero. --- stepmania/src/CourseLoaderCRS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/CourseLoaderCRS.cpp b/stepmania/src/CourseLoaderCRS.cpp index e9f571417f..f76be33df1 100644 --- a/stepmania/src/CourseLoaderCRS.cpp +++ b/stepmania/src/CourseLoaderCRS.cpp @@ -99,7 +99,7 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou TrimLeft( sBits[0] ); TrimRight( sBits[0] ); if( !sBits[0].CompareNoCase("TIME") ) - attack.fStartSecond = StringToFloat( sBits[1] ); + attack.fStartSecond = max( StringToFloat(sBits[1]), 0.0f ); else if( !sBits[0].CompareNoCase("LEN") ) attack.fSecsRemaining = StringToFloat( sBits[1] ); else if( !sBits[0].CompareNoCase("END") )