mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
Add a comment why Math.Min is used
This commit is contained in:
parent
b1f3fee239
commit
fedbbc0210
@ -54,7 +54,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
|
||||
if (mods.Any(h => h is OsuModRelax))
|
||||
{
|
||||
// As we're adding Oks and Mehs to an approximated number of combo breaks the result can be higher than total hits in specific scenarios (which breaks some calculations) so we need to clamp it.
|
||||
effectiveMissCount = Math.Min(effectiveMissCount + countOk + countMeh, totalHits);
|
||||
|
||||
multiplier *= 0.6;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user