]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix butcher command not removing monster weapons
authorMario <mario.mario@y7mail.com>
Thu, 7 Mar 2013 16:06:42 +0000 (03:06 +1100)
committerMario <mario.mario@y7mail.com>
Thu, 7 Mar 2013 16:06:42 +0000 (03:06 +1100)
qcsrc/server/command/sv_cmd.qc

index 941b2a23e4785d30d3c3510479b379ea5bc16f57..2a967151d199ddeb516731976b708bb60b1cd988 100644 (file)
@@ -153,6 +153,9 @@ void GameCommand_butcher(float request)
             FOR_EACH_MONSTER(montokill)
             {
                                WaypointSprite_Kill(montokill.sprite);
+                               
+                               if(montokill.weaponentity)
+                                       remove(montokill.weaponentity);
                     
                 remove(montokill);
                 removed_count += 1;