Fix HitObjects being out of order because of nested objects

This commit is contained in:
Hanamuke 2018-09-13 17:15:46 +02:00
parent 7d3380db66
commit 7e07a07c01

View File

@ -86,6 +86,8 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
objectWithDroplets.Add((CatchHitObject)currentJuiceElement); objectWithDroplets.Add((CatchHitObject)currentJuiceElement);
} }
objectWithDroplets.Sort((h1, h2) => h1.StartTime.CompareTo(h2.StartTime));
double halfCatcherWidth = CatcherArea.GetCatcherSize(Beatmap.BeatmapInfo.BaseDifficulty) / 2; double halfCatcherWidth = CatcherArea.GetCatcherSize(Beatmap.BeatmapInfo.BaseDifficulty) / 2;
int lastDirection = 0; int lastDirection = 0;
double lastExcess = halfCatcherWidth; double lastExcess = halfCatcherWidth;