Skip to content

Commit

Permalink
Merge pull request #15758 from GoldenMine0502/speedbug
Browse files Browse the repository at this point in the history
Make speed skill consider only the shortest movement distance
  • Loading branch information
smoogipoo authored Dec 7, 2021
2 parents 86eacfd + bcda777 commit 74db8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Osu/Difficulty/Skills/Speed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private double strainValueOf(DifficultyHitObject current)
if (strainTime < min_speed_bonus)
speedBonus = 1 + 0.75 * Math.Pow((min_speed_bonus - strainTime) / speed_balancing_factor, 2);

double distance = Math.Min(single_spacing_threshold, osuCurrObj.TravelDistance + osuCurrObj.JumpDistance);
double distance = Math.Min(single_spacing_threshold, osuCurrObj.TravelDistance + osuCurrObj.MovementDistance);

return (speedBonus + speedBonus * Math.Pow(distance / single_spacing_threshold, 3.5)) / strainTime;
}
Expand Down

0 comments on commit 74db8da

Please sign in to comment.