]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
sv_cheats 3: allow spectators to cheat too
authorRudolf Polzer <divverent@alientrap.org>
Wed, 26 Sep 2012 19:16:28 +0000 (21:16 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 26 Sep 2012 19:16:28 +0000 (21:16 +0200)
qcsrc/server/cheats.qc

index 12dfdad9b5001c9b70ac95017ec3535bfdd0fdbe..65feb45724a8ae1dbf3a83142e64b9d642753150 100644 (file)
@@ -48,7 +48,7 @@ float CheatsAllowed(float i, float argc, float fr) // the cheat gets passed as a
        // dead people cannot cheat
        if(self.deadflag != DEAD_NO)
                return 0;
-       if(self.classname != "player")
+       if(gamestart_sv_cheats < 3 && self.classname != "player")
                return 0;
        
        // sv_clones