fix buglist entry: menu upon request

For "traditional" menu style, pickup and #loot/apply can't accept an 'm'
response to bring up a menu upon request when all items involved are of
the same class, because the prompt where that response is allowed only
gets issued when multiple classes are present.
This commit is contained in:
nethack.allison
2003-01-11 17:22:58 +00:00
parent a411ff7e9b
commit d1c2a37deb
7 changed files with 64 additions and 19 deletions

View File

@@ -1753,6 +1753,7 @@ register char *cmd;
boolean do_walk, do_rush, prefix_seen, bad_command,
firsttime = (cmd == 0);
iflags.menu_requested = FALSE;
if (firsttime) {
flags.nopick = 0;
cmd = parse();
@@ -1850,6 +1851,14 @@ register char *cmd;
}
break;
}
/* some special prefix handling */
/* overload 'm' prefix for ',' to mean "request a menu" */
if (prefix_seen && cmd[1] == ',') {
iflags.menu_requested = TRUE;
++cmd;
}
if (do_walk) {
if (multi) flags.mv = TRUE;
domove();