small formatting changes

This commit is contained in:
AJ Kelly
2011-09-18 21:02:29 -05:00
parent 8da8954be5
commit 7edab29ad7
+7 -11
View File
@@ -59,7 +59,6 @@ void AdjustSync::ResetOriginalSyncData()
if( GAMESTATE->m_pCurSong )
{
s_vpTimingDataOriginal.push_back(GAMESTATE->m_pCurSong->m_SongTiming);
const vector<Steps *>& vpSteps = GAMESTATE->m_pCurSong->GetAllSteps();
FOREACH( Steps*, const_cast<vector<Steps *>&>(vpSteps), s )
@@ -250,12 +249,11 @@ void AdjustSync::AutosyncTempo()
if( s_fAverageError < ERROR_TOO_HIGH )
{
// Here we filter out any steps that are too far off.
//
// If it turns out that we want to be even more selective, we can
// keep only a fraction of the data, such as the 80% with the lowest
// error. However, throwing away the ones with high error should
// be enough in most cases.
/* Here we filter out any steps that are too far off.
* If it turns out that we want to be even more selective, we can keep
* only a fraction of the data, such as the 80% with the lowest error.
* However, throwing away the ones with high error should be enough
* in most cases. */
float fFilteredError = 0;
s_iStepsFiltered = s_vAutosyncTempoData.size();
FilterHighErrorPoints( s_vAutosyncTempoData, fSlope, fIntercept, ERROR_TOO_HIGH );
@@ -303,7 +301,6 @@ void AdjustSync::AutosyncTempo()
s_vAutosyncTempoData.clear();
}
static LocalizedString EARLIER ("AdjustSync","earlier");
static LocalizedString LATER ("AdjustSync","later");
static LocalizedString GLOBAL_OFFSET_FROM ( "AdjustSync", "Global Offset from %+.3f to %+.3f (notes %s)" );
@@ -330,9 +327,8 @@ void AdjustSync::GetSyncChangeTextGlobal( vector<RString> &vsAddTo )
{
vsAddTo.push_back( ssprintf(
GLOBAL_OFFSET_FROM.GetValue(),
fOld,
fNew,
(fDelta > 0 ? EARLIER:LATER).GetValue().c_str() ) );
fOld, fNew,
(fDelta > 0 ? EARLIER:LATER).GetValue().c_str() ));
}
}
}