From ed44da351e0fda24bf50675369dd61927dd01393 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 24 Jan 2025 18:26:56 -0500 Subject: [PATCH] more follow-up, less hiding of illegal values Catch it prior to the rn2() call instead. We need to be aware of the issue. --- src/dog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dog.c b/src/dog.c index 4e7d7aedb..07336ef71 100644 --- a/src/dog.c +++ b/src/dog.c @@ -51,7 +51,7 @@ initedog(struct monst *mtmp) mtmp->meating = 0; EDOG(mtmp)->droptime = 0; EDOG(mtmp)->dropdist = 10000; - EDOG(mtmp)->apport = max(1, ACURR(A_CHA)); + EDOG(mtmp)->apport = ACURR(A_CHA); EDOG(mtmp)->whistletime = 0; EDOG(mtmp)->hungrytime = 1000 + svm.moves; EDOG(mtmp)->ogoal.x = -1; /* force error if used before set */