mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:13:20 +08:00
Clamp comboBasedMissCount
This commit is contained in:
parent
c8d99e68a5
commit
ccaac97794
@ -265,6 +265,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
comboBasedMissCount = fullComboThreshold / Math.Max(1.0, scoreMaxCombo);
|
||||
}
|
||||
|
||||
// we're clamping misscount because since its derived from combo it can be higher than total hits and that breaks some calculations
|
||||
comboBasedMissCount = Math.Min(comboBasedMissCount, totalHits);
|
||||
|
||||
return Math.Max(countMiss, (int)Math.Floor(comboBasedMissCount));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user