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);