]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure it isn't counted as cheating
authorMario <mario@smbclan.net>
Mon, 13 Feb 2017 07:57:54 +0000 (17:57 +1000)
committerMario <mario@smbclan.net>
Mon, 13 Feb 2017 07:57:54 +0000 (17:57 +1000)
qcsrc/server/cheats.qc

index 421de5373d833b2e1d77cac89ff7c0655ece9d48..31823f406f220166abbd816a72e6218e44993094 100644 (file)
@@ -224,7 +224,8 @@ float CheatImpulse(entity this, int imp)
                                this.strength_finished = time + this.personal.strength_finished - this.personal.teleport_time;
                                this.invincible_finished = time + this.personal.invincible_finished - this.personal.teleport_time;
 
-                               DID_CHEAT();
+                               if(!autocvar_g_allow_checkpoints)
+                                       DID_CHEAT();
                                break;
                        }
                        if(IS_DEAD(this))