Fix two disqualification bugs: C-mods and rate mods now properly disqualify (#1965)

This commit is contained in:
x0rbl
2020-02-11 12:15:16 -08:00
committed by GitHub
parent eca21d6b29
commit 50de3a1f2d
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -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.