From: Mario Date: Sat, 26 Jan 2013 11:57:58 +0000 (+1100) Subject: Also remove turret's .tur_head when using turretremove command X-Git-Tag: xonotic-v0.8.0~241^2^2~558 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f6e48c233b056689f781f5fe3283887ca1507d1;p=xonotic%2Fxonotic-data.pk3dir.git Also remove turret's .tur_head when using turretremove command --- diff --git a/qcsrc/server/mutators/gamemode_td.qc b/qcsrc/server/mutators/gamemode_td.qc index 5284c496f..81beb4123 100644 --- a/qcsrc/server/mutators/gamemode_td.qc +++ b/qcsrc/server/mutators/gamemode_td.qc @@ -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; }