1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Calculate scaled positions prior to square-rooting

This commit is contained in:
smoogipoo 2018-10-08 17:39:10 +09:00
parent 1ad5090ad6
commit 35f45e74dc

View File

@ -74,7 +74,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
lastTravelDistance = lastSlider.LazyTravelDistance;
}
JumpDistance = (BaseObject.StackedPosition - lastCursorPosition).Length * scalingFactor;
JumpDistance = (BaseObject.StackedPosition * scalingFactor - lastCursorPosition * scalingFactor).Length;
TravelDistance = lastTravelDistance * scalingFactor;
}