Introduce OBJECT_STASHIFY.

This commit is contained in:
Eric S. Raymond 2024-09-22 22:34:07 -04:00
parent 0157e58668
commit 08f0351817
3 changed files with 3 additions and 3 deletions

2
misc.c
View file

@ -625,7 +625,7 @@ void put(obj_t object, loc_t where, int pval) {
/* put() is the same as move(), except the object is stashed and
* can no longer be picked up. */
move(object, where);
game.objects[object].prop = PROP_STASHIFY(pval);
OBJECT_STASHIFY(object, pval);
#ifdef OBJECT_SET_SEEN
OBJECT_SET_SEEN(object);
#endif