]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix monster waypoint not getting removed with the monster if it was killed after...
authorMario <mario.mario@y7mail.com>
Wed, 23 Jan 2013 13:34:12 +0000 (00:34 +1100)
committerMario <mario.mario@y7mail.com>
Wed, 23 Jan 2013 13:34:12 +0000 (00:34 +1100)
qcsrc/server/mutators/gamemode_td.qc

index fb859a6f812aacdb245654326bf333a835647814..0c9eeb301ef72b81ff66718ac0ea25513c8b5bb1 100644 (file)
@@ -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);
     }