]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix accelerometer displaying the real acceleration value (not very stable) instead...
authorterencehill <piuntn@gmail.com>
Thu, 18 Jun 2015 13:47:47 +0000 (15:47 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 18 Jun 2015 13:47:47 +0000 (15:47 +0200)
qcsrc/client/hud.qc

index 33e9cb5f5ff4a436eedcb519840c9e8810cd39e6..6f23e1d7faefddf92bae0c0a48de1cd872de765e 100644 (file)
@@ -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