1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

Fix jump/travel distances in some scenarios

This commit is contained in:
smoogipoo 2018-10-10 11:49:54 +09:00
parent 0a3be0d253
commit d6784c818e

View File

@ -74,8 +74,13 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
lastTravelDistance = lastSlider.LazyTravelDistance; lastTravelDistance = lastSlider.LazyTravelDistance;
} }
JumpDistance = (BaseObject.Position * scalingFactor - lastCursorPosition * scalingFactor).Length; // Don't need to jump to reach spinners
TravelDistance = lastTravelDistance * scalingFactor; if (!(BaseObject is Spinner))
JumpDistance = (BaseObject.Position * scalingFactor - lastCursorPosition * scalingFactor).Length;
// Todo: BUG!!! Last slider's travel distance is considered ONLY IF we ourselves are also sliders!
if (BaseObject is Slider)
TravelDistance = lastTravelDistance * scalingFactor;
} }
private void setTimingValues() private void setTimingValues()