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
main.c
View file

@ -917,6 +917,10 @@ static void listobjects(void)
obj = obj - NOBJECTS;
if (obj == STEPS && TOTING(NUGGET))
continue;
/* (ESR) Warning: it looks like you could get away with
* running this code only on objects with the treasure
* property set. Nope. There is mystery here.
*/
if (PROP_IS_STASHED_OR_UNSEEN(obj)) {
if (game.closed)
continue;