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

Fix stacks having incorrect position

This commit is contained in:
Andrei Zavatski 2023-12-06 10:30:21 +03:00
parent 160edcd270
commit b0878e36cf

View File

@ -100,7 +100,7 @@ namespace osu.Game.Rulesets.Osu.Mods
float z = MaxDepth.Value - (float)((Math.Max(time, appearTime) - appearTime) * speed);
float scale = scaleForDepth(z);
drawable.Position = toPlayfieldPosition(scale, hitObject.Position);
drawable.Position = toPlayfieldPosition(scale, hitObject.StackedPosition);
drawable.Scale = new Vector2(scale);
}
@ -146,7 +146,7 @@ namespace osu.Game.Rulesets.Osu.Mods
}
float scale = scaleForDepth(z);
drawableSlider.Position = toPlayfieldPosition(scale, hitObject.Position);
drawableSlider.Position = toPlayfieldPosition(scale, hitObject.StackedPosition);
drawableSlider.Scale = new Vector2(scale);
}