Right, fixed SMA but not SM? (Negative Fixes)

This commit is contained in:
Jason Felds
2011-05-19 21:49:36 -04:00
parent 8cf6286207
commit 719922a187
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -225,7 +225,7 @@ bool SMLoader::ProcessBPMs( TimingData &out, const RString sParam )
if( negBPM < 0 )
{
float endBeat = fBeat + (fNewBPM / -negBPM) * (fBeat - negBeat);
WarpSegment new_seg(negBeat, endBeat);
WarpSegment new_seg(negBeat, endBeat - negBeat);
out.AddWarpSegment( new_seg );
negBeat = -1;
@@ -241,7 +241,7 @@ bool SMLoader::ProcessBPMs( TimingData &out, const RString sParam )
// add in a warp.
if( highspeedBeat > 0 )
{
WarpSegment new_seg(highspeedBeat, fBeat);
WarpSegment new_seg(highspeedBeat, fBeat - highspeedBeat);
out.AddWarpSegment( new_seg );
highspeedBeat = -1;
}
@@ -317,7 +317,7 @@ void SMLoader::ProcessStops( TimingData &out, const RString sParam )
float fSecondsPerBeat = 60 / oldBPM.GetBPM();
float fSkipBeats = negPause / fSecondsPerBeat;
WarpSegment ws( negBeat, negBeat + fSkipBeats);
WarpSegment ws( negBeat, fSkipBeats);
out.AddWarpSegment( ws );
}
}