From de51a68c92ffac49d4b0f44d5d31b1298e5f96c5 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 19 Jun 2015 22:32:49 +0200 Subject: [PATCH] Fix a small mathematical issue --- qcsrc/client/hud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 6f23e1d7f..2f828e27f 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4142,7 +4142,7 @@ void HUD_Physics(void) f = acceleration/autocvar_hud_panel_physics_acceleration_max; if (autocvar_hud_panel_physics_acceleration_progressbar_nonlinear) - f = sqrt(f); + f = (f >= 0 ? sqrt(f) : -sqrt(-f)); if (acceleration_progressbar_scale) // allow progressbar to go out of panel bounds { -- 2.39.2