store is_convert in Beatmap itself
This commit is contained in:
@@ -114,18 +114,10 @@ impl GradualPerformance {
|
||||
let map = Cow::Borrowed(map);
|
||||
|
||||
match map.mode {
|
||||
GameMode::Osu => {
|
||||
Self::Osu(difficulty.gradual_performance(&OsuBeatmap::new(map, false)))
|
||||
}
|
||||
GameMode::Taiko => {
|
||||
Self::Taiko(difficulty.gradual_performance(&TaikoBeatmap::new(map, false)))
|
||||
}
|
||||
GameMode::Catch => {
|
||||
Self::Catch(difficulty.gradual_performance(&CatchBeatmap::new(map, false)))
|
||||
}
|
||||
GameMode::Mania => {
|
||||
Self::Mania(difficulty.gradual_performance(&ManiaBeatmap::new(map, false)))
|
||||
}
|
||||
GameMode::Osu => Self::Osu(difficulty.gradual_performance(&OsuBeatmap::new(map))),
|
||||
GameMode::Taiko => Self::Taiko(difficulty.gradual_performance(&TaikoBeatmap::new(map))),
|
||||
GameMode::Catch => Self::Catch(difficulty.gradual_performance(&CatchBeatmap::new(map))),
|
||||
GameMode::Mania => Self::Mania(difficulty.gradual_performance(&ManiaBeatmap::new(map))),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,10 @@ impl<'map> Performance<'map> {
|
||||
let map = Cow::Borrowed(map);
|
||||
|
||||
match mode {
|
||||
GameMode::Osu => Self::Osu(OsuPerformance::new(Converted::new(map, false))),
|
||||
GameMode::Taiko => Self::Taiko(TaikoPerformance::new(Converted::new(map, false))),
|
||||
GameMode::Catch => Self::Catch(CatchPerformance::new(Converted::new(map, false))),
|
||||
GameMode::Mania => Self::Mania(ManiaPerformance::new(Converted::new(map, false))),
|
||||
GameMode::Osu => Self::Osu(OsuPerformance::new(Converted::new(map))),
|
||||
GameMode::Taiko => Self::Taiko(TaikoPerformance::new(Converted::new(map))),
|
||||
GameMode::Catch => Self::Catch(CatchPerformance::new(Converted::new(map))),
|
||||
GameMode::Mania => Self::Mania(ManiaPerformance::new(Converted::new(map))),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user