From 4d2f534d45030e34473d8877b7688cc41104d8d3 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 28 Dec 2006 04:57:21 +0000 Subject: [PATCH] Simplify. --- stepmania/src/AdjustSync.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/AdjustSync.cpp b/stepmania/src/AdjustSync.cpp index e19e403edc..da8af67f5c 100644 --- a/stepmania/src/AdjustSync.cpp +++ b/stepmania/src/AdjustSync.cpp @@ -233,9 +233,9 @@ void AdjustSync::AutosyncTempo() return; GAMESTATE->m_pCurSong->m_Timing.m_fBeat0OffsetInSeconds += fIntercept; - + const float fScaleBPM = 1.0f/(1.0f - fSlope); FOREACH( BPMSegment, GAMESTATE->m_pCurSong->m_Timing.m_BPMSegments, i ) - i->SetBPM( 60.0f / ((60.0f / i->GetBPM()) * (1.0f - fSlope)) ); + i->SetBPM( i->GetBPM() * fScaleBPM ); // We assume that the stops were measured as a number of beats. // Therefore, if we change the bpms, we need to make a similar