1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 09:27:34 +08:00

Add note about implicit reliance on sort by start time

This commit is contained in:
Bartłomiej Dach 2024-06-27 07:56:57 +02:00
parent ef952bcd65
commit b1baa49459
No known key found for this signature in database

View File

@ -54,6 +54,8 @@ namespace osu.Game.Screens.Edit
{
// Keep track of the maximum end time encountered thus far.
// This handles cases like osu!mania's hold notes, which could have concurrent other objects after their start time.
// Note that we're relying on the implicit assumption that objects are sorted by start time,
// which is why similar tracking is not done for start time.
currentMaxEndTime = Math.Max(currentMaxEndTime, Beatmap.HitObjects[i - 1].GetEndTime());
double nextObjectStartTime = Beatmap.HitObjects[i].StartTime;