fix order of float operations

This commit is contained in:
MaxOhn
2024-02-14 00:40:06 +01:00
parent 516d47a2fe
commit 9be4b9ba4c
+1 -1
View File
@@ -168,7 +168,7 @@ impl SpeedEvaluator {
let speed_bonus = if strain_time < Self::MIN_SPEED_BONUS {
let base = (Self::MIN_SPEED_BONUS - strain_time) / Self::SPEED_BALANCING_FACTOR;
1.0 + 0.75 * base * base
1.0 + 0.75 * (base * base)
} else {
1.0
};