Reduce layer of brackets
authorMorosophos <morosophos@teichisma.info>
Fri, 13 Sep 2019 13:04:22 +0000 (16:04 +0300)
committerMorosophos <morosophos@teichisma.info>
Fri, 13 Sep 2019 13:04:22 +0000 (16:04 +0300)
qcsrc/common/mapobjects/func/door.qc

index 66de9fb..2344d1f 100644 (file)
@@ -674,12 +674,9 @@ void door_init_shared(entity this)
         {
                  this.wait = -1;
         }
-        else
+        else if (!this.wait)
         {
-                 if (!this.wait)
-                 {
-                       this.wait = 3;
-                 }
+               this.wait = 3;
         }
 
        if (!this.lip)