From: Rudolf Polzer Date: Sun, 4 Dec 2011 19:47:39 +0000 (+0100) Subject: fix grabbing in sandbox mode X-Git-Tag: xonotic-v0.6.0~35^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=82507d5018689bbf07c3cf7a1408d7052b5257b4;p=xonotic%2Fxonotic-data.pk3dir.git fix grabbing in sandbox mode --- diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index c03ea7ae0..87dff243e 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -89,8 +89,7 @@ float CheatsAllowed(float i, float argc, float fr) // the cheat gets passed as a ADD_CHEATS(self,cheating); \ return attempting #define IS_CHEAT(i,argc,fr) \ - ++attempting; \ - if(!CheatsAllowed(i,argc,fr)) \ + if((++attempting, !CheatsAllowed(i,argc,fr))) \ break float CheatImpulse(float i)