]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
func_door: use Q3 default .dmg of 2 on Q3 maps
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 12 Oct 2022 12:57:46 +0000 (22:57 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 16 Feb 2023 11:07:26 +0000 (21:07 +1000)
qcsrc/common/mapobjects/func/door.qc

index d2635e98c167a4e0387bf6e23a13709fa4429cc1..2de9cb0b4e2194878e6a157edcd41f2e7cc07b30 100644 (file)
@@ -776,6 +776,9 @@ spawnfunc(func_door)
                        this.speed = 100;
        }
 
+       if (q3compat && !this.dmg)
+               this.dmg = 2;
+
        settouch(this, door_touch);
 
 // LinkDoors can't be done until all of the doors have been spawned, so