]> granicus.if.org Git - nethack/commitdiff
follow-up bit
authornhmall <nhmall@nethack.org>
Sat, 22 Sep 2018 13:24:20 +0000 (09:24 -0400)
committernhmall <nhmall@nethack.org>
Sat, 22 Sep 2018 13:24:20 +0000 (09:24 -0400)
src/windows.c

index a26fc7e07d16241e772ceccd7c56003b0cfbd67b..c87e4ca4395d88017d58808ddc2d15dd4758714f 100644 (file)
@@ -974,9 +974,10 @@ unsigned long *colormasks UNUSED;
         return; /* processed one field other than BL_FLUSH */
     } /* (idx >= 0, thus not BL_FLUSH, BL_RESET, BL_CHARACTERISTICS) */
 
-    if (idx != BL_FLUSH && idx != BL_RESET)
+    /* does BL_RESET require any specific code to ensure all fields ? */
+
+    if (!(idx == BL_FLUSH || idx == BL_RESET))
         return;
-    /* does BL_RESET require any additional code to ensure all fields ? */
 
     /* We've received BL_FLUSH; time to output the gathered data */
     nb = newbot1;