]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 66de9fbb378ab91ede399beef489793e12475af5..2344d1fd8cce085fdd1d7fff7c594efd2543863a 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)