handle pixel_len 0 for catch

This commit is contained in:
Max
2022-11-08 19:59:38 +01:00
parent 7ded74b54e
commit 20d7598e07
3 changed files with 14 additions and 9 deletions
+1
View File
@@ -599,6 +599,7 @@ impl OsuPpInner {
let better_acc_percentage = if amount_hit_objects_with_acc > 0 {
let sub = self.state.total_hits() - amount_hit_objects_with_acc;
// * It is possible to reach a negative accuracy with this formula. Cap it at zero - zero points.
if self.state.n300 < sub {
0.0
} else {