]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also remove turret's .tur_head when using turretremove command
authorMario <mario.mario@y7mail.com>
Sat, 26 Jan 2013 11:57:58 +0000 (22:57 +1100)
committerMario <mario.mario@y7mail.com>
Sat, 26 Jan 2013 11:57:58 +0000 (22:57 +1100)
qcsrc/server/mutators/gamemode_td.qc

index 5284c496fd88aac45b20ab2acf3e381810e4d1f4..81beb41235e3f860acf181b61dc13b715b7f0c7a 100644 (file)
@@ -992,6 +992,7 @@ MUTATOR_HOOKFUNCTION(td_PlayerCommand)
                {
                        self.turret_cnt -= 1;
                        sprint(self, strcat("You removed your ", trace_ent.netname, "\n"));
+                       remove(trace_ent.tur_head);
                        remove(trace_ent);
                        return TRUE;
                }