Make GOLDOBJ unconditional.
This commit is contained in:
23
src/trap.c
23
src/trap.c
@@ -3176,30 +3176,7 @@ boolean *lostsome;
|
||||
/* else continue */
|
||||
}
|
||||
}
|
||||
#ifndef GOLDOBJ
|
||||
if (!otmp) {
|
||||
/* Nothing available left to drop; try gold */
|
||||
if (u.ugold) {
|
||||
pline("In desperation, you drop your purse.");
|
||||
/* Hack: gold is not in the inventory, so make a gold object
|
||||
* and put it at the head of the inventory list.
|
||||
*/
|
||||
obj = mkgoldobj(u.ugold); /* removes from u.ugold */
|
||||
obj->in_use = TRUE;
|
||||
u.ugold = obj->quan; /* put the gold back */
|
||||
assigninvlet(obj); /* might end up as NOINVSYM */
|
||||
obj->nobj = invent;
|
||||
invent = obj;
|
||||
*lostsome = TRUE;
|
||||
dropx(obj);
|
||||
continue; /* Try again */
|
||||
}
|
||||
/* We can't even drop gold! */
|
||||
return (FALSE);
|
||||
}
|
||||
#else
|
||||
if (!otmp) return (FALSE); /* nothing to drop! */
|
||||
#endif
|
||||
if (otmp->owornmask) remove_worn_item(otmp, FALSE);
|
||||
*lostsome = TRUE;
|
||||
dropx(otmp);
|
||||
|
||||
Reference in New Issue
Block a user