keep perm_invent option

Make it apparent why tty perm_invent can't be set in-game
if the terminal cannot support it.
This commit is contained in:
nhmall
2022-06-20 13:43:50 -04:00
parent cb0dd7af3f
commit 8fca10029a
3 changed files with 42 additions and 20 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")) {
if (WINDOWPORT("tty") && iflags.perm_invent) {
g.tty_invent_win = create_nhwindow(NHW_TTYINVENT);
}
#endif