]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If the monster is a client, don't attempt to remove it
authorMario <mario@smbclan.net>
Sat, 26 Mar 2016 10:40:04 +0000 (20:40 +1000)
committerMario <mario@smbclan.net>
Sat, 26 Mar 2016 10:40:04 +0000 (20:40 +1000)
qcsrc/common/monsters/sv_monsters.qc

index 5910d5b26ffe11921cf7f2689dd885ab9a24c0cb..bba248b8d4f42de6df35de02b31bd52b9f5def1d 100644 (file)
@@ -904,6 +904,9 @@ void Monster_Move(entity this, float runspeed, float walkspeed, float stpspeed)
 
 void Monster_Remove(entity this)
 {
+       if(IS_CLIENT(this))
+               return; // don't remove it?
+
        .entity weaponentity = weaponentities[0];
        if(!this) { return; }