]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure player is killed in CTS if they clear all waypoints too
authorMario <mario@smbclan.net>
Mon, 13 Feb 2017 08:55:20 +0000 (18:55 +1000)
committerMario <mario@smbclan.net>
Mon, 13 Feb 2017 08:55:20 +0000 (18:55 +1000)
qcsrc/server/impulse.qc

index e072e9642af4db95eb73cd152b27e87da8d1f664..6a5354aaff980cc21795ba4860291d33cb07cf44 100644 (file)
@@ -565,6 +565,8 @@ IMPULSE(waypoint_clear)
        {
                delete(this.personal);
                this.personal = NULL;
+               if((g_cts || g_race) && autocvar_g_allow_checkpoints)
+                       ClientKill(this);
        }
        sprint(this, "all waypoints cleared\n");
 }