]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix another self damage issue with clan arena
authorSamual <samual@xonotic.org>
Tue, 17 Apr 2012 15:39:35 +0000 (11:39 -0400)
committerSamual <samual@xonotic.org>
Tue, 17 Apr 2012 15:39:35 +0000 (11:39 -0400)
qcsrc/server/w_common.qc

index 3343fa7c3f5f24d9977e41b05e4da32a498bc0ac..bcf12afa9a8c2eda4bfd36b2afdf9dfb602f488f 100644 (file)
@@ -585,9 +585,13 @@ void W_PrepareExplosionByDamage(entity attacker, void() explode)
 {
        self.takedamage = DAMAGE_NO;
        self.event_damage = SUB_Null;
-       self.owner = attacker;
-       self.realowner = attacker;
-
+       
+       if not(g_ca)
+       {
+               self.owner = attacker;
+               self.realowner = attacker;
+       }
+       
        // do not explode NOW but in the NEXT FRAME!
        // because recursive calls to RadiusDamage are not allowed
        self.nextthink = time;