when status is 0 bound low to 0. Fix #138

This commit is contained in:
2025-02-18 14:17:41 -06:00
committed by Celtic Minstrel
parent 35a2157059
commit 85096de3b7

View File

@@ -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);