]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Call the explosion mutator hook before setting new owner, so the old owner may be...
authorMario <mario@smbclan.net>
Sun, 20 Aug 2017 07:31:56 +0000 (17:31 +1000)
committerMario <mario@smbclan.net>
Sun, 20 Aug 2017 07:31:56 +0000 (17:31 +1000)
qcsrc/server/weapons/common.qc

index b94b2533f3441a1e5955a13f54214b142e94a398..f69faa03a324de3e93d3136610a2835d9bbc781e 100644 (file)
@@ -84,14 +84,14 @@ void W_PrepareExplosionByDamage(entity this, entity attacker, void(entity this)
        this.takedamage = DAMAGE_NO;
        this.event_damage = func_null;
 
+       MUTATOR_CALLHOOK(PrepareExplosionByDamage, this, attacker);
+
        if(IS_CLIENT(attacker) && !autocvar_g_projectiles_keep_owner)
        {
                this.owner = attacker;
                this.realowner = attacker;
        }
 
-       MUTATOR_CALLHOOK(PrepareExplosionByDamage, this, attacker);
-
        // do not explode NOW but in the NEXT FRAME!
        // because recursive calls to RadiusDamage are not allowed
        this.nextthink = time;