From: terencehill Date: Fri, 19 Jun 2015 20:32:49 +0000 (+0200) Subject: Fix a small mathematical issue X-Git-Tag: xonotic-v0.8.1~52^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=de51a68c92ffac49d4b0f44d5d31b1298e5f96c5;p=xonotic%2Fxonotic-data.pk3dir.git Fix a small mathematical issue --- 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 {