]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also remove monster ice when ending the round
authorMario <mario.mario@y7mail.com>
Mon, 5 Aug 2013 19:21:32 +0000 (05:21 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 5 Aug 2013 19:21:32 +0000 (05:21 +1000)
qcsrc/server/mutators/gamemode_invasion.qc

index 280454c28190c05ab40f106b56310b0b4929070f..03c469c64320fc1601aeaf8482c10e3e72f1fd64 100644 (file)
@@ -68,6 +68,7 @@ float Invasion_CheckWinner()
                {
                        WaypointSprite_Kill(head.sprite);
                        if(head.weaponentity) remove(head.weaponentity);
+                       if(head.iceblock) remove(head.iceblock);
                        remove(head);
                }
        
@@ -170,6 +171,7 @@ MUTATOR_HOOKFUNCTION(invasion_MonsterSpawn)
        {
                WaypointSprite_Kill(self.sprite);
                if(self.weaponentity) remove(self.weaponentity);
+               if(self.iceblock) remove(self.iceblock);
                remove(self);
                return FALSE;
        }