]> 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>
Fri, 15 Sep 2023 07:11:43 +0000 (17:11 +1000)
qcsrc/common/mapobjects/func/door.qc

index 540cc0ea87a029205292a31b9e07dfacece96227..1438baadd03cac8ebd3153d63b7634984187dc70 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