]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also remove weapon entity from removed monster
authorMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 10:05:32 +0000 (20:05 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 22 Apr 2013 10:05:32 +0000 (20:05 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index 5036e77d410089353a3d8c767cd0bac66ce7578e..21e92aad9ec33762de11d628141d20a745cee26a 100644 (file)
@@ -792,6 +792,7 @@ MUTATOR_HOOKFUNCTION(td_MonsterSpawn)
        if(self.realowner == world) // nothing spawned it, so kill it
        {
                WaypointSprite_Kill(self.sprite);
+               remove(self.weaponentity);
                remove(self);
                return TRUE;
        }