osu & fruits: cap slider quality

This commit is contained in:
MaxOhn
2021-01-27 11:41:47 +01:00
parent 54a056e36a
commit 82840505b5
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ impl Curve {
}
fn _bezier(result: &mut Vec<Pos2>, points: &[Pos2]) {
let step = 0.25 / SLIDER_QUALITY / points.len() as f32;
let step = (0.25 / SLIDER_QUALITY / points.len() as f32).max(0.01);
let mut i = 0.0;
let n = points.len() as i32 - 1;
+1 -1
View File
@@ -280,7 +280,7 @@ mod tests {
#[test]
#[ignore]
fn no_leniency_single() {
let file = match File::open("./maps/2514909.osu") {
let file = match File::open("./maps/1949106.osu") {
Ok(file) => file,
Err(why) => panic!("Could not open file: {}", why),
};
@@ -6,7 +6,6 @@
use super::super::DifficultyAttributes;
// mod control_point_iter;
mod difficulty_object;
mod skill;
mod skill_kind;