From 143ad1824562d47380e1585cc643bdef72ab458f Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 8 Mar 2021 11:05:39 +0100 Subject: [PATCH] Fix wrong indentation in W_Fireball_LaserPlay --- qcsrc/common/weapons/weapon/fireball.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2