From: terencehill Date: Thu, 18 Jun 2015 13:47:47 +0000 (+0200) Subject: Fix accelerometer displaying the real acceleration value (not very stable) instead... X-Git-Tag: xonotic-v0.8.1~52^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e442d15d034719363324307f6c56e5105ece4832;p=xonotic%2Fxonotic-data.pk3dir.git Fix accelerometer displaying the real acceleration value (not very stable) instead of the average value --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 33e9cb5f5..6f23e1d7f 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -3998,6 +3998,7 @@ void HUD_Physics(void) f = bound(0, f * 10, 1); acc_avg = acc_avg * (1 - f) + acceleration * f; + acceleration = acc_avg; } //compute layout