From 85096de3b738d28fc4c854ab465c2f6daa6689df Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 18 Feb 2025 14:17:41 -0600 Subject: [PATCH] when status is 0 bound low to 0. Fix #138 --- src/universe/living.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universe/living.cpp b/src/universe/living.cpp index e8ab1401..7b553f76 100644 --- a/src/universe/living.cpp +++ b/src/universe/living.cpp @@ -40,7 +40,7 @@ void iLiving::apply_status(eStatus which, int how_much) { if(which == eStatus::ASLEEP || which == eStatus::DUMB) { // No "wrapping" allowed for these effects. if(status[which] < 0) hi = 0; - else if(status[which] > 0) lo = 0; + else if(status[which] >= 0) lo = 0; } status[which] = minmax(lo,hi,status[which] + how_much);