1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 02:15:17 +08:00

Fix too many ticks being displayed on beatmaps with multiple timing sections

Closes https://github.com/ppy/osu/issues/7681.
This commit is contained in:
Dean Herbert 2020-01-31 00:24:00 +09:00
parent 8193991445
commit f51cfa2220

View File

@ -44,7 +44,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
for (var i = 0; i < beatmap.ControlPointInfo.TimingPoints.Count; i++)
{
var point = beatmap.ControlPointInfo.TimingPoints[i];
var until = beatmap.ControlPointInfo.TimingPoints.Count < i + 1 ? beatmap.ControlPointInfo.TimingPoints[i + 1].Time : working.Value.Track.Length;
var until = beatmap.ControlPointInfo.TimingPoints.Count > i + 1 ? beatmap.ControlPointInfo.TimingPoints[i + 1].Time : working.Value.Track.Length;
int beat = 0;