From 4162ef72d44ea4c9bebec180db0b67546b520652 Mon Sep 17 00:00:00 2001 From: Damnae Date: Sun, 12 Feb 2017 06:02:45 +0100 Subject: [PATCH] Remove start/end index. --- .../Objects/Drawables/Connections/FollowPointConnection.cs | 7 ++----- .../Objects/Drawables/Connections/HitObjectConnection.cs | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPointConnection.cs b/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPointConnection.cs index 60ae997a77..3af77e41f8 100644 --- a/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPointConnection.cs +++ b/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPointConnection.cs @@ -22,16 +22,13 @@ namespace osu.Game.Modes.Osu.Objects.Drawables /// public int PreEmpt = 800; - public override void AddConnections(IEnumerable drawableHitObjects, int startIndex = 0, int endIndex = -1) + public override void AddConnections(IEnumerable drawableHitObjects) { var hitObjects = new List(drawableHitObjects .Select(d => (OsuHitObject)d.HitObject) .OrderBy(h => h.StartTime)); - if (endIndex < 0) - endIndex = hitObjects.Count - 1; - - for (int i = startIndex + 1; i <= endIndex; i++) + for (int i = 1; i <= hitObjects.Count - 1; i++) { var prevHitObject = hitObjects[i - 1]; var currHitObject = hitObjects[i]; diff --git a/osu.Game.Modes.Osu/Objects/Drawables/Connections/HitObjectConnection.cs b/osu.Game.Modes.Osu/Objects/Drawables/Connections/HitObjectConnection.cs index 3ef4b4aa29..e2131504cf 100644 --- a/osu.Game.Modes.Osu/Objects/Drawables/Connections/HitObjectConnection.cs +++ b/osu.Game.Modes.Osu/Objects/Drawables/Connections/HitObjectConnection.cs @@ -13,8 +13,6 @@ namespace osu.Game.Modes.Osu.Objects.Drawables.Connections /// Create drawables inside this container, connecting hitobjects visually, for example with follow points. /// /// The drawables hit objects to create connections for - /// Start index into the drawableHitObjects enumeration. - /// End index into the drawableHitObjects enumeration. Use -1 to draw connections until the end. - public abstract void AddConnections(IEnumerable drawableHitObjects, int startIndex = 0, int endIndex = -1); + public abstract void AddConnections(IEnumerable drawableHitObjects); } }