Curses: Remove useless inventory label

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.
This commit is contained in:
Pasi Kallinen
2018-12-29 13:16:51 +02:00
parent 4cbfb7d05f
commit 45e06d638f
-10
View File
@@ -43,15 +43,6 @@ curses_update_inv(void)
/* Clear the window as it is at the moment. */ /* Clear the window as it is at the moment. */
werase(win); 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); display_inventory(NULL, FALSE);
if (border) if (border)
@@ -73,7 +64,6 @@ curses_add_inv(int y,
/* Figure out where to draw the line */ /* Figure out where to draw the line */
if (curses_window_has_border(INV_WIN)) { if (curses_window_has_border(INV_WIN)) {
x++; x++;
y++;
} }
wmove(win, y, x); wmove(win, y, x);