One more braket reducing
authorMorosophos <morosophos@teichisma.info>
Fri, 13 Sep 2019 13:06:47 +0000 (16:06 +0300)
committerMorosophos <morosophos@teichisma.info>
Fri, 13 Sep 2019 13:06:47 +0000 (16:06 +0300)
qcsrc/common/mapobjects/func/door.qc

index 2344d1f..c2b14d2 100644 (file)
@@ -735,12 +735,9 @@ spawnfunc(func_door)
         {
                 this.speed = 750;
         }
-        else
+        else if (!this.speed)
         {
-                if (!this.speed)
-                {
-                        this.speed = 100;
-                }
+                this.speed = 100;
         }
 
        settouch(this, door_touch);