fix order of float operations

This commit is contained in:
MaxOhn
2024-02-14 17:13:25 +01:00
parent 964f80355d
commit c1cd15d0d0
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ pub fn difficulty(
let base_speed_performance = (5.0 * (speed_rating / 0.0675).max(1.0) - 4.0).powi(3) / 100_000.0;
let base_flashlight_performance = if mods.fl() {
flashlight_rating * flashlight_rating * 25.0
(flashlight_rating * flashlight_rating) * 25.0
} else {
0.0
};
+2 -4
View File
@@ -188,11 +188,9 @@ impl AimEvaluator {
// * The maximum velocity we buff is equal to 125 / strainTime
* angle_bonus.min(125.0 / osu_curr_obj.strain_time)
// * scale buff from 150 bpm 1/4 to 200 bpm 1/4
* base1
* base1
* (base1 * base1)
// * Buff distance exceeding 50 (radius) up to 100 (diameter).
* base2
* base2;
* (base2 * base2);
}
// * Penalize wide angles if they're repeated, reducing the penalty as the lastAngle gets more acute.