store is_convert in Beatmap itself

This commit is contained in:
MaxOhn
2024-03-02 06:27:52 +01:00
parent 0f23f81234
commit 59dfc109e0
16 changed files with 66 additions and 115 deletions
+2 -2
View File
@@ -170,6 +170,7 @@ fn convert(map: &mut Beatmap) {
sort::osu_legacy(&mut map.hit_objects);
map.mode = GameMode::Mania;
map.is_convert = true;
}
pub struct PrevValues {
@@ -224,9 +225,8 @@ mod tests {
.unwrap()
.unchecked_into_converted::<Mania>();
assert!(converted.is_convert);
let map = converted.map;
assert!(map.is_convert);
assert_eq!(map.mode, GameMode::Mania);
assert_eq!(map.version, 14);
+1 -1
View File
@@ -110,7 +110,7 @@ impl ManiaGradualDifficulty {
mods,
clock_rate,
objects_is_circle,
is_convert: converted.is_convert,
is_convert: converted.map.is_convert,
strain,
diff_objects,
hit_window,
+1 -1
View File
@@ -40,7 +40,7 @@ pub fn difficulty(
hit_window,
max_combo: values.max_combo,
n_objects,
is_convert: converted.is_convert,
is_convert: converted.map.is_convert,
}
}