apply proper sorting for catch objects

This commit is contained in:
MaxOhn
2024-02-16 01:18:37 +01:00
parent 100d01483c
commit 05b588a2d1
4 changed files with 67 additions and 34 deletions
+3 -5
View File
@@ -282,11 +282,9 @@ impl From<BeatmapState> for Beatmap {
slider_tick_rate,
} = state.difficulty.into();
let mut sorter = sort::TandemSorter::new(
&state.hit_objects,
|a, b| a.start_time.total_cmp(&b.start_time),
true,
);
let mut sorter = sort::TandemSorter::new_stable(&state.hit_objects, |a, b| {
a.start_time.total_cmp(&b.start_time)
});
sorter.sort(&mut state.hit_objects);
sorter.sort(&mut state.hit_sounds);