From: Mario Date: Wed, 23 Jan 2013 13:34:12 +0000 (+1100) Subject: Fix monster waypoint not getting removed with the monster if it was killed after... X-Git-Tag: xonotic-v0.8.0~241^2^2~576 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b4a36b41c849804b6a56ee0c56bac5e42edfac44;p=xonotic%2Fxonotic-data.pk3dir.git Fix monster waypoint not getting removed with the monster if it was killed after the wave finished --- diff --git a/qcsrc/server/mutators/gamemode_td.qc b/qcsrc/server/mutators/gamemode_td.qc index fb859a6f8..0c9eeb301 100644 --- a/qcsrc/server/mutators/gamemode_td.qc +++ b/qcsrc/server/mutators/gamemode_td.qc @@ -532,6 +532,8 @@ void build_phase() if(head.health <= 0) continue; print(strcat("Warning: Monster still alive during build phase! Monster name: ", head.netname, "\n")); + if(head.sprite) + WaypointSprite_Kill(head.sprite); remove(head); }