]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/anticheat.qc
Allow moving via commands
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / anticheat.qc
index 370ef844e8263bf7840153ad51d80a654b7f6653..61bb611fdc01cda06692cb77e537f35d46a92326 100644 (file)
@@ -5,8 +5,6 @@
 #include "defs.qh"
 #include "miscfunctions.qh"
 
-#include "../dpdefs/progsdefs.qh"
-#include "../dpdefs/dpextensions.qh"
 
 
 #include "command/common.qh"
@@ -237,8 +235,7 @@ void anticheat_endframe()
        entity e;
        FOR_EACH_CLIENT(e)
                if (e.fixangle) {
-                       SELFCALL(e, anticheat_fixangle());
-                       SELFCALL_DONE();
+                       WITH(entity, self, e, anticheat_fixangle());
                }
        anticheat_div0_evade_evasion_delta += frametime * (0.5 + random());
 }