Clamp effective miss count to maximum amount of possible braks

This commit is contained in:
StanR 2022-08-16 16:12:13 +03:00
parent e689d4be96
commit 43e471c2a5
1 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,8 @@ private double calculateEffectiveMissCount(OsuDifficultyAttributes attributes)
comboBasedMissCount = fullComboThreshold / Math.Max(1.0, scoreMaxCombo);
}
// Clamp miss count since it's derived from combo and can be higher than total hits and that breaks some calculations
comboBasedMissCount = Math.Min(comboBasedMissCount, totalHits);
// Clamp miss count to maximum amount of possible breaks
comboBasedMissCount = Math.Min(comboBasedMissCount, countOk + countMeh + countMiss);
return Math.Max(countMiss, comboBasedMissCount);
}