From: nethack.allison Date: Fri, 16 Aug 2002 02:44:57 +0000 (+0000) Subject: follow-up bit X-Git-Tag: MOVE2GIT~2514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b1cec60606e4d6c1e334361559be06b8ffd824b;p=nethack follow-up bit --- diff --git a/src/options.c b/src/options.c index c2e273664..9ea08e9b4 100644 --- a/src/options.c +++ b/src/options.c @@ -2577,10 +2577,9 @@ boolean setinitial,setfromfile; Sprintf(abuf, "Select %s window placement relative to the map:", msg ? "message" : "status"); end_menu(tmpwin, abuf); - if (select_menu(tmpwin, PICK_ONE, &window_pick) > 0) { - int reslt = window_pick->item.a_int; - if (msg) iflags.wc_align_message = reslt; - else iflags.wc_align_status = reslt; + if (select_menu(tmpwin, PICK_ONE, &window_pick) > 0) { + if (msg) iflags.wc_align_message = window_pick->item.a_int; + else iflags.wc_align_status = window_pick->item.a_int; free((genericptr_t)window_pick); } destroy_nhwindow(tmpwin);