mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Standardise control point search logic in OverlappingScrollAlgorithm
Was using a very local algorithm which I cannot guarantee is correct. I'd rather it just use the one used everywhere else.
This commit is contained in:
@ -158,9 +158,9 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
||||
// Trim unwanted sequences of timing changes
|
||||
timingChanges = timingChanges
|
||||
// Collapse sections after the last hit object
|
||||
.Where(s => s.StartTime <= lastObjectTime)
|
||||
.Where(s => s.Time <= lastObjectTime)
|
||||
// Collapse sections with the same start time
|
||||
.GroupBy(s => s.StartTime).Select(g => g.Last()).OrderBy(s => s.StartTime);
|
||||
.GroupBy(s => s.Time).Select(g => g.Last()).OrderBy(s => s.Time);
|
||||
|
||||
ControlPoints.AddRange(timingChanges);
|
||||
|
||||
|
Reference in New Issue
Block a user