From: drjaska Date: Thu, 19 May 2022 21:01:54 +0000 (+0300) Subject: fix #2690 by making sure mines aren't proximity exploded by independent players X-Git-Tag: xonotic-v0.8.5~30^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d7f47c01a44afbaa4e5289671c2b2fd334df0545;p=xonotic%2Fxonotic-data.pk3dir.git fix #2690 by making sure mines aren't proximity exploded by independent players --- diff --git a/qcsrc/common/weapons/weapon/minelayer.qc b/qcsrc/common/weapons/weapon/minelayer.qc index f25859e05..8a8d4839c 100644 --- a/qcsrc/common/weapons/weapon/minelayer.qc +++ b/qcsrc/common/weapons/weapon/minelayer.qc @@ -192,7 +192,7 @@ void W_MineLayer_Think(entity this) head = findradius(this.origin, WEP_CVAR(minelayer, proximityradius)); while(head) { - if(IS_PLAYER(head) && !IS_DEAD(head) && !STAT(FROZEN, head)) + if(IS_PLAYER(head) && !IS_DEAD(head) && !STAT(FROZEN, head) && !IS_INDEPENDENT_PLAYER(head)) if(head != this.realowner && DIFF_TEAM(head, this.realowner)) // don't trigger for team mates if(!this.mine_time) {