mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Merge branch 'master' into fail-animation-update
This commit is contained in:
commit
f6d98e8cf2
@ -54,6 +54,10 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
|
|||||||
|
|
||||||
private void setDistances()
|
private void setDistances()
|
||||||
{
|
{
|
||||||
|
// We don't need to calculate either angle or distance when one of the last->curr objects is a spinner
|
||||||
|
if (BaseObject is Spinner || lastObject is Spinner)
|
||||||
|
return;
|
||||||
|
|
||||||
// We will scale distances by this factor, so we can assume a uniform CircleSize among beatmaps.
|
// We will scale distances by this factor, so we can assume a uniform CircleSize among beatmaps.
|
||||||
float scalingFactor = normalized_radius / (float)BaseObject.Radius;
|
float scalingFactor = normalized_radius / (float)BaseObject.Radius;
|
||||||
|
|
||||||
@ -71,11 +75,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
|
|||||||
|
|
||||||
Vector2 lastCursorPosition = getEndCursorPosition(lastObject);
|
Vector2 lastCursorPosition = getEndCursorPosition(lastObject);
|
||||||
|
|
||||||
// Don't need to jump to reach spinners
|
JumpDistance = (BaseObject.StackedPosition * scalingFactor - lastCursorPosition * scalingFactor).Length;
|
||||||
if (!(BaseObject is Spinner))
|
|
||||||
JumpDistance = (BaseObject.StackedPosition * scalingFactor - lastCursorPosition * scalingFactor).Length;
|
|
||||||
|
|
||||||
if (lastLastObject != null)
|
if (lastLastObject != null && !(lastLastObject is Spinner))
|
||||||
{
|
{
|
||||||
Vector2 lastLastCursorPosition = getEndCursorPosition(lastLastObject);
|
Vector2 lastLastCursorPosition = getEndCursorPosition(lastLastObject);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user