menu loot follow-up bit

This commit is contained in:
nethack.allison
2002-09-04 01:44:25 +00:00
parent 5797f8110b
commit 3bacf79700

View File

@@ -2014,6 +2014,10 @@ register int held;
char menuprompt[QBUFSZ];
boolean outokay = (cnt != 0);
boolean inokay = (invent != 0);
if (!outokay && !inokay) {
pline("%s You don't have anything to put in.", emptymsg);
return used;
}
menuprompt[0] = '\0';
if (!cnt) Sprintf(menuprompt, "%s ", emptymsg);
Strcat(menuprompt, "Do what?");