From: Rudolf Polzer Date: Wed, 26 Sep 2012 19:16:28 +0000 (+0200) Subject: sv_cheats 3: allow spectators to cheat too X-Git-Tag: xonotic-v0.7.0~212 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f36716696fa1230d5b3f3a65f1cdf3ee715658a;p=xonotic%2Fxonotic-data.pk3dir.git sv_cheats 3: allow spectators to cheat too --- diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 12dfdad9b..65feb4572 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -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