From 3ff0557e43db922fd044fc332cb8e7421168f3e9 Mon Sep 17 00:00:00 2001 From: Atermonera Date: Sat, 2 May 2020 13:29:48 -0700 Subject: [PATCH] Fix Temp check. --- code/modules/mob/living/carbon/human/life.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index b73bac92e43..46e045e6d73 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -817,7 +817,7 @@ //Handle normal clothing for(var/obj/item/clothing/C in list(head,wear_suit,w_uniform,shoes,gloves,wear_mask)) if(C) - if(C.handle_low_temperature(temperature)) + if(C.handle_high_temperature(temperature)) . |= C.get_heat_protection_flags() //See proc/get_heat_protection_flags(temperature) for the description of this proc. @@ -826,8 +826,8 @@ //Handle normal clothing for(var/obj/item/clothing/C in list(head,wear_suit,w_uniform,shoes,gloves,wear_mask)) if(C) - if(C.handle_high_temperature(temperature)) - . |= C.get_cold_protection_flags() + if(C.min_cold_protection_temperature && C.min_cold_protection_temperature <= temperature) + . |= C.cold_protection /mob/living/carbon/human/get_heat_protection(temperature) //Temperature is the temperature you're being exposed to. var/thermal_protection_flags = get_heat_protection_flags(temperature)