From: Pasi Kallinen Date: Thu, 7 Apr 2022 13:44:16 +0000 (+0300) Subject: When levitating, hide drink and dip from herecmd_menu X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10fd0deab23ce979fb2ed421986435c5789ba9c4;p=nethack When levitating, hide drink and dip from herecmd_menu --- diff --git a/src/cmd.c b/src/cmd.c index 2c272dbea..c361fa0eb 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -4717,12 +4717,12 @@ here_cmd_menu(void) win = create_nhwindow(NHW_MENU); start_menu(win, MENU_BEHAVE_STANDARD); - if (IS_FOUNTAIN(typ) || IS_SINK(typ)) { + if ((IS_FOUNTAIN(typ) || IS_SINK(typ)) && can_reach_floor(FALSE)) { Sprintf(buf, "Drink from the %s", defsyms[IS_FOUNTAIN(typ) ? S_fountain : S_sink].explanation); mcmd_addmenu(win, MCMD_QUAFF, buf); } - if (IS_FOUNTAIN(typ)) + if (IS_FOUNTAIN(typ) && can_reach_floor(FALSE)) mcmd_addmenu(win, MCMD_DIP, "Dip something into the fountain"); if (IS_THRONE(typ)) mcmd_addmenu(win, MCMD_SIT, "Sit on the throne");