]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/anticheat.qc
Replace all direct assignments to self with setself(e)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / anticheat.qc
index f795a1acb2e93320a6af2f330a860e0a9c73bd19..370ef844e8263bf7840153ad51d80a654b7f6653 100644 (file)
@@ -234,11 +234,12 @@ void anticheat_fixangle()
 
 void anticheat_endframe()
 {SELFPARAM();
-       entity oldself = self;
-       FOR_EACH_CLIENT(self)
-               if (self.fixangle)
-                       anticheat_fixangle();
-       self = oldself;
+       entity e;
+       FOR_EACH_CLIENT(e)
+               if (e.fixangle) {
+                       SELFCALL(e, anticheat_fixangle());
+                       SELFCALL_DONE();
+               }
        anticheat_div0_evade_evasion_delta += frametime * (0.5 + random());
 }