]> granicus.if.org Git - nethack/commitdiff
follow-up bit
authornhmall <nhmall@nethack.org>
Fri, 28 Sep 2018 06:28:54 +0000 (02:28 -0400)
committernhmall <nhmall@nethack.org>
Fri, 28 Sep 2018 06:28:54 +0000 (02:28 -0400)
win/tty/wintty.c

index a7e95833a6aa03c8a86bbe1b12c4d317600ef851..d888f6d6721022f562f2da316b9a27b492648813 100644 (file)
@@ -4331,11 +4331,9 @@ render_status(VOID_ARGS)
                         int cnt = tty_status[BEFORE][fldidx].lth
                                      - tty_status[NOW][fldidx].lth;
 
-                        while (cnt > 0) {
-                            x += (tty_status[NOW][fldidx].lth - 1);
+                        x += (tty_status[NOW][fldidx].lth - 1);
+                        while (cnt-- > 0)
                             tty_putstatusfield(nullfield, " ", x++, y);
-                            --cnt;
-                        }
                     }
                 }
             }