Initial implementation of the new (old) mania scrolling calculations

This commit is contained in:
smoogipoo
2018-01-05 20:17:02 +09:00
parent d2b135d2a8
commit 5d12682e83
2 changed files with 27 additions and 29 deletions

View File

@ -70,12 +70,10 @@ namespace osu.Game.Rulesets.UI.Scrolling
// Perform some post processing of the timing changes
timingChanges = timingChanges
// Collapse sections after the last hit object
.Where(s => s.StartTime <= lastObjectTime)
// Collapse sections with the same start time
.GroupBy(s => s.StartTime).Select(g => g.Last()).OrderBy(s => s.StartTime)
// Collapse sections with the same beat length
.GroupBy(s => s.TimingPoint.BeatLength * s.DifficultyPoint.SpeedMultiplier).Select(g => g.First());
// Collapse sections after the last hit object
.Where(s => s.StartTime <= lastObjectTime)
// Collapse sections with the same start time
.GroupBy(s => s.StartTime).Select(g => g.Last()).OrderBy(s => s.StartTime);
DefaultControlPoints.AddRange(timingChanges);