]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clear personal waypoint on death
authorMario <mario@smbclan.net>
Mon, 13 Feb 2017 08:16:54 +0000 (18:16 +1000)
committerMario <mario@smbclan.net>
Mon, 13 Feb 2017 08:16:54 +0000 (18:16 +1000)
qcsrc/server/player.qc

index 5e581c2bd45a06fca4acf31553599390e491b4ae..980a0472ff0c9c550f71ede88bb6e149b397f56d 100644 (file)
@@ -615,6 +615,8 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
                UNSET_ONGROUND(this);
                // dying animation
                this.deadflag = DEAD_DYING;
+               // clear checkpoints (prevent cheating)
+               if (this.personal) delete(this.personal);
 
                // when to allow respawn
                calculate_player_respawn_time(this);