Skip to content

Commit

Permalink
Clamp comboBasedMissCount
Browse files Browse the repository at this point in the history
  • Loading branch information
stanriders committed Oct 16, 2021
1 parent c8d99e6 commit ccaac97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ private int calculateEffectiveMissCount()
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));
}

Expand Down

0 comments on commit ccaac97

Please sign in to comment.