Add explanatory comment

This commit is contained in:
smoogipoo 2018-05-16 13:59:51 +09:00
parent ad81357fb5
commit 0f817d18d4
1 changed files with 4 additions and 2 deletions

View File

@ -54,8 +54,10 @@ protected override void ParseStreamInto(StreamReader stream, Beatmap beatmap)
base.ParseStreamInto(stream, beatmap);
// objects may be out of order *only* if a user has manually edited an .osu file.
// unfortunately there are ranked maps in this state (example: https://osu.ppy.sh/s/594828).
// Objects may be out of order *only* if a user has manually edited an .osu file.
// Unfortunately there are ranked maps in this state (example: https://osu.ppy.sh/s/594828).
// OrderBy is used to guarantee that the parsing order of hitobjects with equal start times is maintained (stably-sorted)
// The parsing order of hitobjects matters in mania difficulty calculation
this.beatmap.HitObjects = this.beatmap.HitObjects.OrderBy(h => h.StartTime).ToList();
foreach (var hitObject in this.beatmap.HitObjects)