X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=5aebb2a396caee144d35d72617670a7641759edc;hb=ef78c36ddb2c4d3715a3885525bc4106fffb3060;hp=0d540c65d7518eadf448f1941f9e2f7b16936a7a;hpb=82c3ae5e65573b97f52d3c14986d45167fa8f884;p=open-adventure.git diff --git a/misc.c b/misc.c index 0d540c6..5aebb2a 100644 --- a/misc.c +++ b/misc.c @@ -600,11 +600,11 @@ void put(obj_t object, loc_t where, int pval) * negated game.prop values for the repository objects. */ { move(object, where); -#ifndef FOUNDBOOL - game.objects[object].prop = (-1) - pval;; // Needs to stay synchronized with PROP_STASHED -#else - game.objects[object].prop = - pval;; // Needs to stay synchronized with PROP_STASHED - game.objects[object].found = true; + /* (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 }