mirror of
https://github.com/ppy/osu.git
synced 2025-03-14 05:47:20 +08:00
Clamp effective miss count to maximum amount of possible braks
This commit is contained in:
parent
e689d4be96
commit
43e471c2a5
@ -270,8 +270,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user