From 1747d96bde1e56f6c3678ce1e4228e4b9738d65f Mon Sep 17 00:00:00 2001 From: kwotaq Date: Fri, 13 Dec 2024 11:30:51 +0200 Subject: [PATCH] remove null check --- osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs b/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs index 46e57d3881..a85a391835 100644 --- a/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs +++ b/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs @@ -123,8 +123,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators } // The spacing bonus in speed evaluation - double currFlowBonus = Math.Pow((osuLastObj?.MinimumJumpDistance ?? 0) / 125, 3.6); - double prevFlowBonus = Math.Pow((osuLastLastObj?.MinimumJumpDistance ?? 0) / 125, 3.6); + double currFlowBonus = Math.Pow(osuLastObj.MinimumJumpDistance / 125, 3.6); + double prevFlowBonus = Math.Pow(osuLastLastObj.MinimumJumpDistance / 125, 3.6); double flowBonus = Math.Max(prevFlowBonus, currFlowBonus); // Part of the aiming difficulty for this object is accounted for in the speed evaluator, so reduce aim difficulty here