]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix typo.
authorRudolf Polzer <divverent@xonotic.org>
Tue, 3 Jun 2014 19:57:45 +0000 (21:57 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 3 Jun 2014 19:57:45 +0000 (21:57 +0200)
qcsrc/server/anticheat.qc

index 4e2de0d572468923f374089247f5db9df4f92308..b2b6b3f683a89b9e71639583809d996df923dfca 100644 (file)
@@ -146,8 +146,8 @@ void anticheat_physics()
        if (self.anticheat_speedhack_lasttime > 0) {
                float dt = time - self.anticheat_speedhack_lasttime;
                const float falloff = 0.2;
-               self.anticheat_speedhack_accu *= exp(-dt * f);
-               self.anticheat_speedhack_accu += frametime * f;
+               self.anticheat_speedhack_accu *= exp(-dt * falloff);
+               self.anticheat_speedhack_accu += frametime * falloff;
                self.anticheat_speedhack_lasttime = time;
                MEAN_ACCUMULATE(anticheat_speedhack_m1, self.anticheat_speedhack_accu, frametime);
                MEAN_ACCUMULATE(anticheat_speedhack_m2, self.anticheat_speedhack_accu, frametime);