From 4c124311111db5233a55ed3244f638058ac01af5 Mon Sep 17 00:00:00 2001 From: YPOQ <30683121+YPOQ@users.noreply.github.com> Date: Mon, 3 Sep 2018 09:10:55 -0600 Subject: [PATCH] Fixes mobs getting stuck at min/max body temperature (#40061) --- code/modules/mob/status_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/status_procs.dm b/code/modules/mob/status_procs.dm index 080307ee9d38c..aae14e6885a2b 100644 --- a/code/modules/mob/status_procs.dm +++ b/code/modules/mob/status_procs.dm @@ -244,5 +244,5 @@ /////////////////////////////////// TEMPERATURE //////////////////////////////////// /mob/proc/adjust_bodytemperature(amount,min_temp=0,max_temp=INFINITY) - if(bodytemperature > min_temp && bodytemperature < max_temp) + if(bodytemperature >= min_temp && bodytemperature <= max_temp) bodytemperature = CLAMP(bodytemperature + amount,min_temp,max_temp)