1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:43:21 +08:00

Add comment

This commit is contained in:
Dan Balasescu 2022-01-11 13:53:51 +09:00
parent 81fed4c6bf
commit 38a51b9ce0

View File

@ -93,6 +93,8 @@ namespace osu.Game.Beatmaps
if (t.Time > lastTime)
return (beatLength: t.BeatLength, 0);
// osu-stable forced the first control point to start at 0.
// This is reproduced here to maintain compatibility around osu!mania scroll speed and song select display.
double currentTime = i == 0 ? 0 : t.Time;
double nextTime = i == ControlPointInfo.TimingPoints.Count - 1 ? lastTime : ControlPointInfo.TimingPoints[i + 1].Time;