Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeenyuhs committed May 28, 2024
1 parent 4fe4e03 commit 1fce78b
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 @@ -810,8 +810,8 @@ impl OsuPerformanceInner {
fn get_combo_scaling_factor(&self) -> f64 {
if self.attrs.max_combo == 0 {
1.0
} else if self.mods.rx() {
((f64::from(self.state.max_combo) / f64::from(self.attrs.max_combo)).log10() * 0.56 + 1.0).min(0.0).max(1.0)
} else if self.mods.rx() && self.state.max_combo > 16 {
((f64::from(self.state.max_combo) / f64::from(self.attrs.max_combo)).log10() * 0.56 + 1.0)
} else {
(f64::from(self.state.max_combo).powf(0.8) / f64::from(self.attrs.max_combo).powf(0.8))
.min(1.0)
Expand Down

0 comments on commit 1fce78b

Please sign in to comment.