Skip to content

Commit

Permalink
Clamp effective miss count to maximum amount of possible braks
Browse files Browse the repository at this point in the history
  • Loading branch information
stanriders committed Aug 16, 2022
1 parent e689d4b commit 43e471c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 43e471c

Please sign in to comment.