mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 15:02:54 +08:00
Calculate scaled positions prior to square-rooting
This commit is contained in:
parent
1ad5090ad6
commit
35f45e74dc
@ -74,7 +74,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
|
|||||||
lastTravelDistance = lastSlider.LazyTravelDistance;
|
lastTravelDistance = lastSlider.LazyTravelDistance;
|
||||||
}
|
}
|
||||||
|
|
||||||
JumpDistance = (BaseObject.StackedPosition - lastCursorPosition).Length * scalingFactor;
|
JumpDistance = (BaseObject.StackedPosition * scalingFactor - lastCursorPosition * scalingFactor).Length;
|
||||||
TravelDistance = lastTravelDistance * scalingFactor;
|
TravelDistance = lastTravelDistance * scalingFactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user