Add explanatory comments.

This commit is contained in:
Eric S. Raymond 2023-04-15 06:29:59 -04:00
parent a6b41fdb8f
commit 5d3205e1e9
4 changed files with 35 additions and 7 deletions

4
misc.c
View file

@ -600,8 +600,10 @@ void put(obj_t object, loc_t where, int pval)
* negated game.prop values for the repository objects. */
{
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
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;