projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve state-macro encapsulation.
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index f6a37f71a05d66fb5a59ab2c296fe4836b35500c..5aebb2a396caee144d35d72617670a7641759edc 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-602,11
+602,9
@@
void put(obj_t object, loc_t where, int pval)
move(object, where);
/* (ESR) Read this in combination with the macro defintions in advebt.h.
*/
move(object, where);
/* (ESR) Read this in combination with the macro defintions in advebt.h.
*/
-#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;
+ game.objects[object].prop = PROP_STASHIFY(pval);
+#ifdef PROP_SET_SEEN
+ PROP_SET_SEEN(object);
#endif
}
#endif
}