attempt to fix github issue #1104 gui build curses

Check for pdcursesmod explicitly, since it is require for
curses support under the NetHackW gui version

Closes #1104
This commit is contained in:
nhmall
2023-09-30 10:20:27 -04:00
parent 086f68187f
commit cf3cbcf832
5 changed files with 36 additions and 24 deletions

View File

@@ -469,6 +469,8 @@ curses_display_nhwindow(winid wid, boolean block)
{
menu_item *selected = NULL;
if (wid == WIN_ERR)
return;
if (curses_is_menu(wid) || curses_is_text(wid)) {
curses_end_menu(wid, "");
(void) curses_select_menu(wid, PICK_NONE, &selected);