osu & fruits: cap slider quality
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user