Cat is back in the bag. Revert commits.

A-mods need to be tested more.

...and this is what happens when you forget to
stash changes before a merge. Lesson learned.
This commit is contained in:
Jason Felds
2013-04-19 21:49:55 -04:00
parent 459ffe027f
commit 20d94d4b7e
7 changed files with 7 additions and 178 deletions
+1 -27
View File
@@ -408,35 +408,9 @@ void Player::Init(
break;
}
// calculate A-mod speed here, so we can adjust properly on a per-song basis.
// XXX: can we find a better location for this?
// XXX: Yes, I copied the same comment practically. --wolfman2000
if (m_pPlayerState->m_PlayerOptions.GetCurrent().m_fAvgScrollBPM != 0)
{
float avgBPM;
if (GAMESTATE->IsCourseMode() )
{
vector<TrailEntry> &entries = GAMESTATE->m_pCurTrail[pn]->m_vEntries;
float foundBPMs = 0;
FOREACH_CONST( TrailEntry, entries, e )
{
foundBPMs += e->pSong->m_SongTiming.GetBPMUsedMostOften();
}
avgBPM = foundBPMs / entries.size();
}
else
{
avgBPM = GAMESTATE->m_pCurSong->m_SongTiming.GetBPMUsedMostOften();
}
// set an X-mod equal to Anum / avgBPM (e.g. A600 with 150 becomes 4x)
PO_GROUP_ASSIGN(m_pPlayerState->m_PlayerOptions, ModsLevel_Preferred, m_fScrollSpeed,
m_pPlayerState->m_PlayerOptions.GetPreferred().m_fAvgScrollBPM / avgBPM);
}
// calculate M-mod speed here, so we can adjust properly on a per-song basis.
// XXX: can we find a better location for this?
else if( m_pPlayerState->m_PlayerOptions.GetCurrent().m_fMaxScrollBPM != 0 )
if( m_pPlayerState->m_PlayerOptions.GetCurrent().m_fMaxScrollBPM != 0 )
{
DisplayBpms bpms;