]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix wrong indentation in W_Fireball_LaserPlay
authorterencehill <piuntn@gmail.com>
Mon, 8 Mar 2021 10:05:39 +0000 (11:05 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 8 Mar 2021 10:05:39 +0000 (11:05 +0100)
qcsrc/common/weapons/weapon/fireball.qc

index 2796438378d94ad6c26813be2efcb5e5ad5c89e6..ce070f75e8c9300804feb3265b6e5a88b1bab689 100644 (file)
@@ -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);