Skip to content

Commit

Permalink
Even better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Jul 16, 2024
1 parent fcc8e7b commit ced11e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private double computeAccuracyValue(ScoreInfo score, OsuDifficultyAttributes att
// This percentage only considers HitCircles of any value - in this part of the calculation we focus on hitting the timing hit window.
double betterAccuracyPercentage;
int amountHitObjectsWithAccuracy = attributes.HitCircleCount;
if (score.Mods.All(h => h is not OsuModClassic cl || !cl.NoSliderHeadAccuracy.Value))
if (score.Mods.OfType<OsuModClassic>().All(m => !m.NoSliderHeadAccuracy.Value))
amountHitObjectsWithAccuracy += attributes.SliderCount;

if (amountHitObjectsWithAccuracy > 0)
Expand Down

0 comments on commit ced11e6

Please sign in to comment.