]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 2344d1fd8cce085fdd1d7fff7c594efd2543863a..c2b14d26685fb263ce5b9cb1e99e012af61024f8 100644 (file)
@@ -735,12 +735,9 @@ spawnfunc(func_door)
         {
                 this.speed = 750;
         }
         {
                 this.speed = 750;
         }
-        else
+        else if (!this.speed)
         {
         {
-                if (!this.speed)
-                {
-                        this.speed = 100;
-                }
+                this.speed = 100;
         }
 
        settouch(this, door_touch);
         }
 
        settouch(this, door_touch);