make FIRSTBEAT and LASTBEAT match the rest of the cache-only values.

fix LASTBEAT to actually ignore the value when not from cache, rather than
say we're ignoring it and still use it anyway.
This commit is contained in:
Thad Ward
2006-08-10 10:12:05 +00:00
parent 5143db7475
commit 6d6d81cd60
+4 -7
View File
@@ -301,16 +301,13 @@ bool SMLoader::LoadFromSMFile( const RString &sPath, Song &out )
* these, so make sure we always calculate it ourself. */
else if( sValueName=="FIRSTBEAT" )
{
if(!FromCache)
continue;
out.m_fFirstBeat = StringToFloat( sParams[1] );
if( FromCache )
out.m_fFirstBeat = StringToFloat( sParams[1] );
}
else if( sValueName=="LASTBEAT" )
{
if(!FromCache)
LOG->Trace("Ignored #LASTBEAT (cache only)");
out.m_fLastBeat = StringToFloat( sParams[1] );
if( FromCache )
out.m_fLastBeat = StringToFloat( sParams[1] );
}
else if( sValueName=="SONGFILENAME" )
{