]> granicus.if.org Git - nethack/commitdiff
follow up for code-reordering in flush_screen()
authornhmall <nhmall@nethack.org>
Sun, 6 Feb 2022 14:57:26 +0000 (09:57 -0500)
committernhmall <nhmall@nethack.org>
Sun, 6 Feb 2022 14:57:26 +0000 (09:57 -0500)
src/display.c

index cff0464c00251b81905d5c8e724491b9262bc370..adcbfca6a753749042c3762ad76d2ce3c91c354d 100644 (file)
@@ -1859,6 +1859,9 @@ flush_screen(int cursor_on_u)
             }
     }
 
+    display_nhwindow(WIN_MAP, FALSE);
+    reset_glyph_bbox();
+
     /* get this done now, before we place the cursor on the hero */
     if (g.context.botl || g.context.botlx)
         bot();
@@ -1868,8 +1871,6 @@ flush_screen(int cursor_on_u)
     /* This needs to be the final thing done in flush_screen  */
     if (cursor_on_u)
         curs(WIN_MAP, u.ux, u.uy); /* move cursor to the hero */
-    display_nhwindow(WIN_MAP, FALSE);
-    reset_glyph_bbox();
     flushing = 0;
 }