X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=misc.c;h=5aebb2a396caee144d35d72617670a7641759edc;hb=869c53d1b1ae2d1da6cbb37070e76054e65cd559;hp=f224d4ce15089d48d82389d210737f98772c3f2b;hpb=02987d0330cf586a90307ad7e8a06cfcde6f6b92;p=open-adventure.git diff --git a/misc.c b/misc.c index f224d4c..5aebb2a 100644 --- a/misc.c +++ b/misc.c @@ -600,7 +600,12 @@ void put(obj_t object, loc_t where, int pval) * negated game.prop values for the repository objects. */ { move(object, where); - game.objects[object].prop = (-1) - pval;; // Needs to stay synchronized with PROP_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)