From 25371102f8deaf00c44bc521efb4ebee96272753 Mon Sep 17 00:00:00 2001 From: Artur Date: Fri, 14 May 2021 00:06:14 +0300 Subject: [PATCH] oh my god why are negatives truthy --- code/modules/mob/living/blood.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/blood.dm b/code/modules/mob/living/blood.dm index 15871463e2..812cf74424 100644 --- a/code/modules/mob/living/blood.dm +++ b/code/modules/mob/living/blood.dm @@ -39,8 +39,8 @@ return if(bodytemperature >= TCRYO && !(HAS_TRAIT(src, TRAIT_HUSK))) //cryosleep or husked people do not pump the blood. - if(integrating_blood) - integrating_blood -- + if(integrating_blood > 0) + integrating_blood = max(integrating_blood - 1, 0) //Blood regeneration if there is some space if(blood_volume < BLOOD_VOLUME_NORMAL) var/nutrition_ratio = 0