1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 02:43:18 +08:00

Merge pull request #23 from kwotaq/code-quality

remove null check
This commit is contained in:
KermitNuggies 2024-12-17 00:42:35 +13:00 committed by GitHub
commit e25cbda76c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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