From f97ff175debc63507dfbca81a5cc578a578536f5 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 10 Nov 2023 13:17:09 -0500 Subject: [PATCH] bring a couple of comments up to date --- src/eat.c | 2 +- src/zap.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/eat.c b/src/eat.c index d5969587d..841b2598d 100644 --- a/src/eat.c +++ b/src/eat.c @@ -2719,7 +2719,7 @@ doeat(void) } } - /* from floorfood(), &zeroobj means iron bars at current spot */ + /* from floorfood(), &gi.invalid_obj means iron bars at current spot */ if (otmp == &gi.invalid_obj) { /* hero in metallivore form is eating [diggable] iron bars at current location so skip the other assorted checks; diff --git a/src/zap.c b/src/zap.c index 6c1722b87..d3c4f2923 100644 --- a/src/zap.c +++ b/src/zap.c @@ -5981,8 +5981,9 @@ makewish(void) } /* * Note: if they wished for and got a non-object successfully, - * otmp == &zeroobj. That includes an artifact which has been denied. - * Wishing for "nothing" requires a separate value to remain distinct. + * otmp == &gi.invalid_obj. That includes an artifact which has been + * denied. Wishing for "nothing" requires a separate value to remain + * distinct. */ strcpy(bufcpy, buf); otmp = readobjnam(buf, ¬hing);