From: Mario Date: Mon, 13 Feb 2017 07:57:54 +0000 (+1000) Subject: Make sure it isn't counted as cheating X-Git-Tag: xonotic-v0.8.2~216 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fa69727f7fc099153c2a85c47977f8a53505ccca;p=xonotic%2Fxonotic-data.pk3dir.git Make sure it isn't counted as cheating --- diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 421de5373..31823f406 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -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))