From a15b587b8156e339fa7b1b3c9449786304916526 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 15 Apr 2022 00:45:35 -0700 Subject: [PATCH] fix a comment At one point temp_resist() was boolean and when it was changed to long the comment preceding it wasn't updated. --- src/eat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eat.c b/src/eat.c index f41f6c4af..3515fe6a3 100644 --- a/src/eat.c +++ b/src/eat.c @@ -414,7 +414,9 @@ do_reset_eat(void) newuhs(FALSE); } -/* return True if 'prop' has a non-zero timed value and no other source */ +/* if 'prop' is only set because of a timed value (so not an intrinsic + attribute or because of polymorph shape or worn or carried gear), return + its timeout, otherwise return 0 */ long temp_resist(int prop) {