mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Use a stable sort for hitobjects
This commit is contained in:
parent
2297a53342
commit
cf44357bdb
@ -56,7 +56,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
// 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).
|
||||
this.beatmap.HitObjects.Sort((x, y) => x.StartTime.CompareTo(y.StartTime));
|
||||
this.beatmap.HitObjects = this.beatmap.HitObjects.OrderBy(h => h.StartTime).ToList();
|
||||
|
||||
foreach (var hitObject in this.beatmap.HitObjects)
|
||||
hitObject.ApplyDefaults(this.beatmap.ControlPointInfo, this.beatmap.BeatmapInfo.BaseDifficulty);
|
||||
|
Loading…
Reference in New Issue
Block a user