From b1c191cf856b779fa94f4b624a16db0ab7a3c02b Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sun, 21 Apr 2002 13:36:38 +0000 Subject: [PATCH] prevmsg followup The patch by assumed TTY_GRAPHICS was defined. That broke environments where it wasn't, such as win32 graphics. --- src/options.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index fefc7023d..261d1fd8a 100644 --- a/src/options.c +++ b/src/options.c @@ -476,7 +476,9 @@ initoptions() flags.end_top = 3; flags.end_around = 2; iflags.msg_history = 20; +#ifdef TTY_GRAPHICS iflags.prevmsg_window = 's'; +#endif /* Use negative indices to indicate not yet selected */ flags.initrole = -1; @@ -2474,7 +2476,9 @@ boolean setinitial,setfromfile; } } retval = TRUE; - } else if (!strcmp("msg_window", optname)) { + } +#ifdef TTY_GRAPHICS + else if (!strcmp("msg_window", optname)) { /* by Christian W. Cooper */ menu_item *window_pick = (menu_item *)0; tmpwin = create_nhwindow(NHW_MENU); @@ -2499,6 +2503,7 @@ boolean setinitial,setfromfile; destroy_nhwindow(tmpwin); retval = TRUE; } +#endif return retval; } @@ -2635,10 +2640,12 @@ char *buf; Sprintf(buf, "%s", to_be_done); else if (!strcmp(optname, "msghistory")) Sprintf(buf, "%u", iflags.msg_history); +#ifdef TTY_GRAPHICS else if (!strcmp(optname, "msg_window")) Sprintf(buf, "%s", (iflags.prevmsg_window=='s') ? "single" : (iflags.prevmsg_window=='c') ? "combination" : (iflags.prevmsg_window=='f') ? "full" : "reversed"); +#endif else if (!strcmp(optname, "name")) Sprintf(buf, "%s", plname); else if (!strcmp(optname, "objects")) -- 2.40.0