fix: fixed feature-gated code

This commit is contained in:
MaxOhn
2023-12-29 11:53:40 +01:00
parent fecc3b1941
commit 876abf8043
3 changed files with 6 additions and 2 deletions
+5
View File
@@ -162,6 +162,7 @@ struct ManiaGradualDifficultyInner {
diff_objects: Box<[ManiaDifficultyObject]>,
curr_combo: usize,
clock_rate: f64,
is_convert: bool,
}
impl ManiaGradualDifficultyInner {
@@ -202,6 +203,7 @@ impl ManiaGradualDifficultyInner {
diff_objects: Box::from([]),
curr_combo: 0,
clock_rate,
is_convert,
}
}
};
@@ -226,6 +228,7 @@ impl ManiaGradualDifficultyInner {
diff_objects: diff_objects.into_boxed_slice(),
curr_combo,
clock_rate,
is_convert,
}
}
@@ -249,6 +252,8 @@ impl ManiaGradualDifficultyInner {
stars: self.strain.clone().difficulty_value() * STAR_SCALING_FACTOR,
hit_window: self.hit_window,
max_combo: self.curr_combo,
is_convert: self.is_convert,
n_objects: self.diff_objects.len() + 1,
})
}
-1
View File
@@ -268,7 +268,6 @@ impl Iterator for TaikoGradualDifficulty {
FirstTwoCombos::Both => self.attrs.max_combo = 2,
}
}
_ => unreachable!(),
}
for _ in 0..take {
+1 -1
View File
@@ -71,7 +71,7 @@ fn gradual_complete_next() {
let next_gradual_owned = gradual_owned.next(state.clone()).unwrap();
let regular_calc = ManiaPP::new(map)
let mut regular_calc = ManiaPP::new(map)
.mods(mods)
.passed_objects(i)
.state(state.clone());