From: terencehill Date: Mon, 8 Mar 2021 10:05:39 +0000 (+0100) Subject: Fix wrong indentation in W_Fireball_LaserPlay X-Git-Tag: xonotic-v0.8.5~520 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=143ad1824562d47380e1585cc643bdef72ab458f;p=xonotic%2Fxonotic-data.pk3dir.git Fix wrong indentation in W_Fireball_LaserPlay --- diff --git a/qcsrc/common/weapons/weapon/fireball.qc b/qcsrc/common/weapons/weapon/fireball.qc index 279643837..ce070f75e 100644 --- a/qcsrc/common/weapons/weapon/fireball.qc +++ b/qcsrc/common/weapons/weapon/fireball.qc @@ -79,8 +79,11 @@ void W_Fireball_LaserPlay(entity this, float dt, float dist, float damage, float RandomSelection_Init(); for(e = WarpZone_FindRadius(this.origin, dist, true); e; e = e.chain) - if(e != this.realowner) if(e.takedamage == DAMAGE_AIM) if(!IS_PLAYER(e) || !this.realowner || DIFF_TEAM(e, this)) { + if(e == this.realowner) continue; + if(e.takedamage != DAMAGE_AIM) continue; + if(IS_PLAYER(e) && this.realowner && SAME_TEAM(e, this)) continue; + p = e.origin; p.x += e.mins.x + random() * (e.maxs.x - e.mins.x); p.y += e.mins.y + random() * (e.maxs.y - e.mins.y);