X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=5aebb2a396caee144d35d72617670a7641759edc;hb=ef78c36ddb2c4d3715a3885525bc4106fffb3060;hp=b8bc4613bc313c995ece1af9699636433a434bf9;hpb=eebc87f889b0fa1404684aa6e72dda5a5e53d96b;p=open-adventure.git diff --git a/misc.c b/misc.c index b8bc461..5aebb2a 100644 --- a/misc.c +++ b/misc.c @@ -595,12 +595,17 @@ void move(obj_t object, loc_t where) drop(object, where); } -loc_t put(obj_t object, loc_t where, int pval) +void put(obj_t object, loc_t where, int pval) /* put() is the same as move(), except it returns a value used to set up the * negated game.prop values for the repository objects. */ { move(object, where); - return (-1) - pval;; // Needs to stay sinchronized with STASHED + /* (ESR) Read this in combination with the macro defintions in advebt.h. + */ + game.objects[object].prop = PROP_STASHIFY(pval); +#ifdef PROP_SET_SEEN + PROP_SET_SEEN(object); +#endif } void carry(obj_t object, loc_t where)