Enable TTY_PERM_INVENT

The permanent inventory will be automatically shown if the terminal size
allows.
But only output an error message if the player requested it via
perm_invent option.
This commit is contained in:
Patric Mueller
2022-06-20 18:07:24 +02:00
parent 65659b2cab
commit cb0dd7af3f
3 changed files with 18 additions and 12 deletions

View File

@@ -636,7 +636,7 @@ display_gamewindows(void)
start_menu(WIN_INVEN, 0U), end_menu(WIN_INVEN, (char *) 0);
#ifdef TTY_PERM_INVENT
if (WINDOWPORT("tty") && iflags.perm_invent) {
if (WINDOWPORT("tty")) {
g.tty_invent_win = create_nhwindow(NHW_TTYINVENT);
}
#endif