From e442d15d034719363324307f6c56e5105ece4832 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 18 Jun 2015 15:47:47 +0200 Subject: [PATCH] Fix accelerometer displaying the real acceleration value (not very stable) instead of the average value --- qcsrc/client/hud.qc | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2