U666 - inserting gold into a container

The special-case code for the full menu style lacked an #ifndef GOLDOBJ
to handle the case where gold is the only thing in the hero was carrying.
This commit is contained in:
cohrs
2003-10-01 03:37:55 +00:00
parent 1e2d502ac6
commit d91171b491
2 changed files with 7 additions and 1 deletions

View File

@@ -2114,10 +2114,14 @@ register int held;
int t;
char menuprompt[BUFSZ];
boolean outokay = (cnt != 0);
#ifndef GOLDOBJ
boolean inokay = (invent != 0) || (u.ugold != 0);
#else
boolean inokay = (invent != 0);
#endif
if (!outokay && !inokay) {
pline("%s", emptymsg);
pline("You don't have anything to put in.");
You("don't have anything to put in.");
return used;
}
menuprompt[0] = '\0';