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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user