]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix grabbing in sandbox mode
authorRudolf Polzer <divverent@xonotic.org>
Sun, 4 Dec 2011 19:47:39 +0000 (20:47 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 4 Dec 2011 19:47:39 +0000 (20:47 +0100)
qcsrc/server/cheats.qc

index c03ea7ae0915e07b5b3a1d8c6c0d68554a9b46f1..87dff243e6beb9d3bb387a52348ce68fed456ea6 100644 (file)
@@ -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)