]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Ensure that fast doors don't open slower with sv_doors_always_open
authorMorosophos <morosophos@teichisma.info>
Wed, 25 Sep 2019 09:00:39 +0000 (12:00 +0300)
committerMorosophos <morosophos@teichisma.info>
Wed, 25 Sep 2019 09:00:39 +0000 (12:00 +0300)
qcsrc/common/mapobjects/func/door.qc

index c2b14d26685fb263ce5b9cb1e99e012af61024f8..e9fd04b7263398217e507800c47261f50ab29696 100644 (file)
@@ -733,7 +733,7 @@ spawnfunc(func_door)
 
         if(autocvar_sv_doors_always_open)
         {
-                this.speed = 750;
+                this.speed = max(750, this.speed);
         }
         else if (!this.speed)
         {