]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Always apply the owner change to func_breakable when being destroyed, not just in...
authorMario <mario@smbclan.net>
Sun, 25 Jun 2017 09:34:20 +0000 (19:34 +1000)
committerMario <mario@smbclan.net>
Sun, 25 Jun 2017 09:34:20 +0000 (19:34 +1000)
qcsrc/common/triggers/func/breakable.qc

index 81a61019080174099569de31bfb87670605c3ea1..79c2feb4eab85b8115a0ddcd00270a26323d7c81 100644 (file)
@@ -271,7 +271,7 @@ void func_breakable_damage(entity this, entity inflictor, entity attacker, float
                this.takedamage = DAMAGE_NO;
                this.event_damage = func_null;
 
-               if(IS_CLIENT(attacker) && this.classname == "func_assault_destructible")
+               if(IS_CLIENT(attacker)) //&& this.classname == "func_assault_destructible")
                {
                        this.owner = attacker;
                        this.realowner = attacker;