osu & fruits: linear sliders with != 2 points are now bezier

This commit is contained in:
MaxOhn
2021-01-28 19:03:22 +01:00
parent d929fbcfac
commit 0e9cadffb9
4 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -87,7 +87,9 @@ pub fn stars(map: &Beatmap, mods: impl Mods, passed_objects: Option<usize>) -> S
/ 100.0;
// Ensure path type validity
let path_type = if *path_type == PathType::PerfectCurve && curve_points.len() > 3 {
let path_type = if (*path_type == PathType::PerfectCurve && curve_points.len() > 3)
|| (*path_type == PathType::Linear && curve_points.len() != 2)
{
PathType::Bezier
} else if curve_points.len() == 2 {
PathType::Linear