1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-09 03:02:56 +08:00

Fix instant spinners giving insane amounts of strain

This commit is contained in:
StanR 2021-10-09 12:35:17 +03:00
parent 17e0498860
commit b72b071c25

View File

@ -69,6 +69,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
TravelDistance = lastSlider.LazyTravelDistance * scalingFactor; TravelDistance = lastSlider.LazyTravelDistance * scalingFactor;
} }
if (!(lastObject is Spinner))
{
Vector2 lastCursorPosition = getEndCursorPosition(lastObject); Vector2 lastCursorPosition = getEndCursorPosition(lastObject);
// Don't need to jump to reach spinners // Don't need to jump to reach spinners
@ -88,6 +90,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
Angle = Math.Abs(Math.Atan2(det, dot)); Angle = Math.Abs(Math.Atan2(det, dot));
} }
} }
}
private void computeSliderCursorPosition(Slider slider) private void computeSliderCursorPosition(Slider slider)
{ {