diff --git a/code/ATMOSPHERICS/components/binary_devices/binary_atmos_base.dm b/code/ATMOSPHERICS/components/binary_devices/binary_atmos_base.dm index df89a24e5ba..e4858d432e6 100644 --- a/code/ATMOSPHERICS/components/binary_devices/binary_atmos_base.dm +++ b/code/ATMOSPHERICS/components/binary_devices/binary_atmos_base.dm @@ -19,7 +19,6 @@ Iconnery */ /obj/machinery/atmospherics/components/binary/hide(intact) - showpipe = !intact update_icon() ..(intact) diff --git a/code/ATMOSPHERICS/components/components_base.dm b/code/ATMOSPHERICS/components/components_base.dm index 45b2b548d29..555018e9440 100644 --- a/code/ATMOSPHERICS/components/components_base.dm +++ b/code/ATMOSPHERICS/components/components_base.dm @@ -4,7 +4,7 @@ On top of that, now people can add component-speciic procs/vars if they want! */ /obj/machinery/atmospherics/components/ - var/welded //Used on pumps and scrubbers + var/welded = 0 //Used on pumps and scrubbers var/showpipe = 0 var/list/datum/pipeline/parents = list() @@ -39,6 +39,13 @@ Iconnery update_icon_nopipes() underlays.Cut() + + var/turf/T = loc + if(level == 2 || !T.intact) + showpipe = 1 + else + showpipe = 0 + if(!showpipe) return //no need to update the pipes if they aren't showing @@ -63,10 +70,8 @@ Pipenet stuff; housekeeping nullifyPipenet(PARENT_I) ..() -/obj/machinery/atmospherics/components/atmosinit() - if(level == 2) - showpipe = 1 - ..() + + /obj/machinery/atmospherics/components/construction() ..() diff --git a/code/ATMOSPHERICS/components/unary_devices/unary_base.dm b/code/ATMOSPHERICS/components/unary_devices/unary_base.dm index 235c8907982..2e018e313b7 100644 --- a/code/ATMOSPHERICS/components/unary_devices/unary_base.dm +++ b/code/ATMOSPHERICS/components/unary_devices/unary_base.dm @@ -12,8 +12,7 @@ Iconnery */ -/obj/machinery/atmospherics/components/unary/hide(var/intact) - showpipe = !intact +/obj/machinery/atmospherics/components/unary/hide(intact) update_icon() ..(intact)