post-3.6.0: fix "object lost" panic during pickup caused by sortloot revamp
post-3.6.0: more sortloot revisions
+post-3.6.0: fix inventory menu for response of '?' to getobj (more sortloot
+ revamp fallout)
Platform- and/or Interface-Specific Fixes
else if (!strcmp(word, "write with"))
Sprintf(qbuf, "your %s", body_part(FINGERTIP));
else if (!strcmp(word, "wield"))
- Sprintf(qbuf, "your %s %s", uarmg ? "gloved" : "bare",
- makeplural(body_part(HAND)));
+ Sprintf(qbuf, "your %s %s%s", uarmg ? "gloved" : "bare",
+ makeplural(body_part(HAND)),
+ !uwep ? " (wielded)" : "");
else if (!strcmp(word, "ready"))
- Strcpy(qbuf, "empty quiver");
+ Sprintf(qbuf, "empty quiver%s",
+ !uquiver ? " (nothing readied)" : "");
if (ilet == '?' && !*lets && *altlets)
allowed_choices = altlets;
nextclass:
classcount = 0;
for (otmp = invent; otmp; otmp = otmp->nobj) {
+ if (lets && !index(lets, otmp->invlet))
+ continue;
if (!flags.sortpack || otmp->oclass == *invlet) {
any = zeroany; /* all bits zero */
ilet = otmp->invlet;