]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
func_door: fix .dmg field having no effect
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 06:50:44 +0000 (16:50 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 07:11:42 +0000 (17:11 +1000)
The player's .takedamage == DAMAGE_AIM not DAMAGE_YES

qcsrc/common/mapobjects/func/door.qc

index 8d59c298bed85259af373be9e92a7af164d199fc..7688d740e3b2b2234701c0e78e3531d03939ffae 100644 (file)
@@ -43,7 +43,7 @@ void door_blocked(entity this, entity blocker)
        else
        {
 #ifdef SVQC
-               if((this.dmg) && (blocker.takedamage == DAMAGE_YES))    // Shall we bite?
+               if (this.dmg && blocker.takedamage != DAMAGE_NO)    // Shall we bite?
                        Damage (blocker, this, this, this.dmg, DEATH_HURTTRIGGER.m_id, DMG_NOWEP, blocker.origin, '0 0 0');
 #endif