fixed taiko

This commit is contained in:
MaxOhn
2022-10-20 00:10:38 +02:00
parent 6ff46367ca
commit 17ce0ef2c9
21 changed files with 278 additions and 274 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ impl BeatmapAttributesBuilder {
Self::TAIKO_MAX,
);
diff_range.floor() / clock_rate
diff_range / clock_rate
}
GameMode::Mania => {
let mut value = if !self.converted {
+5 -4
View File
@@ -1,8 +1,7 @@
use std::cmp::Ordering;
use crate::{
curve::{Curve, CurveBuffers},
parse::{HitObject, HitObjectKind},
util::TandemSorter,
Beatmap, GameMode,
};
@@ -87,8 +86,10 @@ impl Beatmap {
// We only convert STD to TKO so we don't need to remove objects
// with the same timestamp that would appear only in MNA
map.hit_objects
.sort_by(|p1, p2| p1.partial_cmp(p2).unwrap_or(Ordering::Equal));
let mut sorter = TandemSorter::new(&map.hit_objects, true);
sorter.sort(&mut map.hit_objects);
sorter.toggle_marks();
sorter.sort(&mut map.sounds);
map.mode = GameMode::Taiko;