Skip to content

Commit

Permalink
fix: properly divide by combo
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Nov 3, 2024
1 parent 674cbec commit c504511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osu/performance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ impl<'map> OsuPerformance<'map> {

if f64::from(state.max_combo) < full_combo_threshold {
effective_miss_count =
full_combo_threshold / total_imperfect_hits(&state).max(1.0);
full_combo_threshold / f64::from(state.max_combo).max(1.0);
}

// * In classic scores there can't be more misses than a sum of all non-perfect judgements
Expand All @@ -649,7 +649,7 @@ impl<'map> OsuPerformance<'map> {

if f64::from(state.max_combo) < full_combo_threshold {
effective_miss_count =
full_combo_threshold / total_imperfect_hits(&state).max(1.0);
full_combo_threshold / f64::from(state.max_combo).max(1.0);
}

// * Combine regular misses with tick misses since tick misses break combo as well
Expand Down

0 comments on commit c504511

Please sign in to comment.