store is_convert in Beatmap itself
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user