mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
Fix jump/travel distances in some scenarios
This commit is contained in:
parent
0a3be0d253
commit
d6784c818e
@ -74,8 +74,13 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
|
||||
lastTravelDistance = lastSlider.LazyTravelDistance;
|
||||
}
|
||||
|
||||
JumpDistance = (BaseObject.Position * scalingFactor - lastCursorPosition * scalingFactor).Length;
|
||||
TravelDistance = lastTravelDistance * scalingFactor;
|
||||
// Don't need to jump to reach spinners
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user