Fix two disqualification bugs: C-mods and rate mods now properly disqualify (#1965)
This commit is contained in:
@@ -1915,6 +1915,12 @@ bool GameState::CurrentOptionsDisqualifyPlayer( PlayerNumber pn )
|
||||
return false;
|
||||
|
||||
const PlayerOptions &po = m_pPlayerState[pn]->m_PlayerOptions.GetPreferred();
|
||||
const SongOptions &so = m_SongOptions.GetPreferred();
|
||||
|
||||
// Playing a song/course at a slower music rate should disqualify score. -x0rbl
|
||||
if (so.m_fMusicRate < 1.0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check the stored player options for disqualify. Don't disqualify because
|
||||
// of mods that were forced.
|
||||
|
||||
+3
-1
@@ -595,7 +595,9 @@ bool Steps::HasSignificantTimingChanges() const
|
||||
if( timing->HasBpmChanges() )
|
||||
{
|
||||
// check to see if these changes are significant.
|
||||
if( (GetMaxBPM() - GetMinBPM()) > 3.000f )
|
||||
DisplayBpms bpms;
|
||||
m_pSong->GetDisplayBpms(bpms);
|
||||
if (bpms.GetMax() - bpms.GetMin() > 3.000f)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user