]> granicus.if.org Git - nethack/commitdiff
Curses: Remove useless inventory label
authorPasi Kallinen <paxed@alt.org>
Sat, 29 Dec 2018 11:16:46 +0000 (13:16 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 29 Dec 2018 11:16:51 +0000 (13:16 +0200)
The inventory window used a line to say "Inventory:", which is pretty
useless, and that was the only window showing such a label.

Also don't duplicate the "Not carrying anything" text from core.

win/curses/cursinvt.c

index c88889355323866ac4ff4a501f0e8bd5460011d6..6e66d539d7faf1ceff4922977a71fffaeaf17d3d 100644 (file)
@@ -43,15 +43,6 @@ curses_update_inv(void)
     /* Clear the window as it is at the moment. */
     werase(win);
 
-    wmove(win, y, x);
-    wattron(win, attr);
-    wprintw(win, "Inventory:");
-    wattroff(win, attr);
-
-    /* The actual inventory will override this if we do carry stuff */
-    wmove(win, y + 1, x);
-    wprintw(win, "Not carrying anything");
-
     display_inventory(NULL, FALSE);
 
     if (border)
@@ -73,7 +64,6 @@ curses_add_inv(int y,
     /* Figure out where to draw the line */
     if (curses_window_has_border(INV_WIN)) {
         x++;
-        y++;
     }
 
     wmove(win, y, x);