projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Condition in alternative state-management macros.
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index f224d4ce15089d48d82389d210737f98772c3f2b..0d540c65d7518eadf448f1941f9e2f7b16936a7a 100644
(file)
--- 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);
* 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
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;
+#endif
}
void carry(obj_t object, loc_t where)
}
void carry(obj_t object, loc_t where)