potion-from-sink and the corpsenm field

Change the code involved to use a new #define for the field, like other
overloaded uses of corpsenm.  Also remove one check for this field from
potion.c: there are no blessed potions from sinks.
This commit is contained in:
cohrs
2003-09-30 18:55:02 +00:00
parent 2d8bc8875e
commit 1e2d502ac6
5 changed files with 8 additions and 10 deletions

View File

@@ -497,7 +497,7 @@ register struct obj *obj;
otemp.quan = 1L;
otemp.onamelth = 0;
otemp.oxlth = 0;
if (objects[otemp.otyp].oc_class == POTION_CLASS && otemp.corpsenm)
if (objects[otemp.otyp].oc_class == POTION_CLASS && otemp.fromsink)
/* kludge, meaning it's sink water */
Sprintf(qbuf,"Call a stream of %s fluid:",
OBJ_DESCR(objects[otemp.otyp]));