From a49441b1e24ebf9f75de1bd0759cf390f7158877 Mon Sep 17 00:00:00 2001 From: XDTM Date: Mon, 9 Oct 2017 02:08:43 +0200 Subject: [PATCH 1/2] Internals set to 0 pressure will prevent breathing environment air (#31422) --- code/modules/mob/living/carbon/life.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index 47458b01d2..8cd7dd5643 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -78,7 +78,7 @@ //Breathe from internal breath = get_breath_from_internal(BREATH_VOLUME) - if(!breath) + if(isnull(breath)) //in case of 0 pressure internals if(isobj(loc)) //Breathe from loc as object var/obj/loc_as_obj = loc @@ -226,7 +226,9 @@ update_internals_hud_icon(0) else update_internals_hud_icon(1) - return internal.remove_air_volume(volume_needed) + . = internal.remove_air_volume(volume_needed) + if(!.) + return FALSE //to differentiate between no internals and active, but empty internals /mob/living/carbon/proc/handle_blood() return