mirror of https://github.com/ppy/osu
Take hitobject start/end times into account in drain
This commit is contained in:
parent
e650b10b5e
commit
848a3fb6d7
|
@ -84,12 +84,12 @@ public override void ApplyBeatmap(IBeatmap beatmap)
|
|||
noDrainPeriodTracker = new PeriodTracker(beatmap.Breaks.Select(breakPeriod => new Period(
|
||||
beatmap.HitObjects
|
||||
.Select(hitObject => hitObject.GetEndTime())
|
||||
.Where(endTime => endTime < breakPeriod.StartTime)
|
||||
.Where(endTime => endTime <= breakPeriod.StartTime)
|
||||
.DefaultIfEmpty(double.MinValue)
|
||||
.Last(),
|
||||
beatmap.HitObjects
|
||||
.Select(hitObject => hitObject.StartTime)
|
||||
.Where(startTime => startTime > breakPeriod.EndTime)
|
||||
.Where(startTime => startTime >= breakPeriod.EndTime)
|
||||
.DefaultIfEmpty(double.MaxValue)
|
||||
.First()
|
||||
)));
|
||||
|
|
Loading…
Reference in New Issue