]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set the attacker as activator when a door is hit
authorMario <zacjardine@y7mail.com>
Mon, 17 Sep 2018 07:54:21 +0000 (17:54 +1000)
committerMario <zacjardine@y7mail.com>
Mon, 17 Sep 2018 07:54:21 +0000 (17:54 +1000)
qcsrc/common/mapobjects/func/door.qc

index 8d40a377be081fbc583f3adef2486a129530d694..b7418298cbe7f05d45392770e5e2b3a9ed7bb4b9 100644 (file)
@@ -277,7 +277,7 @@ void door_damage(entity this, entity inflictor, entity attacker, float damage, i
        {
                SetResourceAmountExplicit(this.owner, RESOURCE_HEALTH, this.owner.max_health);
                this.owner.takedamage = DAMAGE_NO;      // will be reset upon return
-               door_use(this.owner, NULL, NULL);
+               door_use(this.owner, attacker, NULL);
        }
 }