Add explanatory comments.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index f224d4ce15089d48d82389d210737f98772c3f2b..f6a37f71a05d66fb5a59ab2c296fe4836b35500c 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -600,7 +600,14 @@ 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.
+     */
+#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;
+#endif
 }
 
 void carry(obj_t object, loc_t where)