From: PatR Date: Fri, 15 Apr 2022 07:45:35 +0000 (-0700) Subject: fix a comment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a15b587b8156e339fa7b1b3c9449786304916526;p=nethack fix a comment At one point temp_resist() was boolean and when it was changed to long the comment preceding it wasn't updated. --- 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) {