diff --git a/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs b/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs index f779f9948f..5a67a849d8 100644 --- a/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs +++ b/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs @@ -8,19 +8,25 @@ namespace osu.Game.Modes.Osu.Objects.Drawables { class DrawableSlider : DrawableOsuHitObject { - public DrawableSlider(Slider h) : base(h) + public DrawableSlider(Slider s) : base(s) { Origin = Anchor.Centre; - Position = new Vector2(h.Position.X, h.Position.Y); + Position = new Vector2(s.Position.X, s.Position.Y); Path sliderPath; Add(sliderPath = new Path()); - for (int i = 0; i < h.Curve.Path.Count; ++i) - sliderPath.Positions.Add(h.Curve.Path[i] - h.Position); + for (int i = 0; i < s.Curve.Path.Count; ++i) + sliderPath.Positions.Add(s.Curve.Path[i] - s.Position); - h.Position = Vector2.Zero; - Add(new DrawableHitCircle(h)); + Add(new DrawableHitCircle(new HitCircle + { + StartTime = s.StartTime, + Position = sliderPath.Positions[0] - s.Position, + }) + { + Depth = 1 + }); } protected override void LoadComplete() diff --git a/osu.Game.Mode.Osu/Objects/Slider.cs b/osu.Game.Mode.Osu/Objects/Slider.cs index b52a7c7623..3e0d899745 100644 --- a/osu.Game.Mode.Osu/Objects/Slider.cs +++ b/osu.Game.Mode.Osu/Objects/Slider.cs @@ -201,5 +201,5 @@ namespace osu.Game.Modes.Osu.Objects Bezier, Linear, PerfectCurve - }; + } }