mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Fix HR not properly applying to sliders
This commit is contained in:
@ -22,8 +22,11 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
if (slider == null)
|
if (slider == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
slider.HeadCircle.Position = new Vector2(slider.HeadCircle.Position.X, OsuPlayfield.BASE_SIZE.Y - slider.HeadCircle.Position.Y);
|
||||||
|
slider.TailCircle.Position = new Vector2(slider.TailCircle.Position.X, OsuPlayfield.BASE_SIZE.Y - slider.TailCircle.Position.Y);
|
||||||
|
|
||||||
var newControlPoints = new List<Vector2>();
|
var newControlPoints = new List<Vector2>();
|
||||||
slider.ControlPoints.ForEach(c => newControlPoints.Add(new Vector2(c.X, OsuPlayfield.BASE_SIZE.Y - c.Y)));
|
slider.ControlPoints.ForEach(c => newControlPoints.Add(new Vector2(c.X, -c.Y)));
|
||||||
|
|
||||||
slider.ControlPoints = newControlPoints;
|
slider.ControlPoints = newControlPoints;
|
||||||
slider.Curve?.Calculate(); // Recalculate the slider curve
|
slider.Curve?.Calculate(); // Recalculate the slider curve
|
||||||
|
Reference in New Issue
Block a user