]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set func_door speed to 400 if it's unspecified and sv_q3defragcompat is enabled 831/head
authorbones_was_here <bones_was_here@yahoo.com.au>
Tue, 16 Jun 2020 11:00:03 +0000 (21:00 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Tue, 16 Jun 2020 11:00:03 +0000 (21:00 +1000)
qcsrc/common/mapobjects/func/door.qc

index 57faf51455f18f0c47b5732dbf199045d73ed27d..11196ab38d7f2bbcce2418a3bfd3f201be84bed4 100644 (file)
@@ -737,7 +737,10 @@ spawnfunc(func_door)
         }
         else if (!this.speed)
         {
-                this.speed = 100;
+               if (autocvar_sv_q3defragcompat)
+                       this.speed = 400;
+               else
+                       this.speed = 100;
         }
 
        settouch(this, door_touch);