]> granicus.if.org Git - nethack/commitdiff
fix a comment
authorPatR <rankin@nethack.org>
Fri, 15 Apr 2022 07:45:35 +0000 (00:45 -0700)
committerPatR <rankin@nethack.org>
Fri, 15 Apr 2022 07:45:35 +0000 (00:45 -0700)
At one point temp_resist() was boolean and when it was changed to
long the comment preceding it wasn't updated.

src/eat.c

index f41f6c4af95652e2b107b8a0019e21762b01ed4b..3515fe6a3f0c57d9234c92bf074fefc657fde145 100644 (file)
--- 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)
 {