From: Samual Date: Tue, 17 Apr 2012 15:39:35 +0000 (-0400) Subject: Fix another self damage issue with clan arena X-Git-Tag: xonotic-v0.7.0~335^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fe918a703a56450ef0067294d58bd77d7de89517;p=xonotic%2Fxonotic-data.pk3dir.git Fix another self damage issue with clan arena --- diff --git a/qcsrc/server/w_common.qc b/qcsrc/server/w_common.qc index 3343fa7c3..bcf12afa9 100644 --- a/qcsrc/server/w_common.qc +++ b/qcsrc/server/w_common.qc @@ -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;