Merge pull request #6093 from Heroman3003/zpipe-fix

Fixes newly constructed vertical pipes being invisible
This commit is contained in:
Neerti
2019-04-16 22:00:09 -04:00
committed by VirgoBot
parent fa51e6f28f
commit fee131b612

View File

@@ -26,7 +26,6 @@ obj/machinery/atmospherics/pipe/zpipe
var/fatigue_pressure = 55*ONE_ATMOSPHERE
alert_pressure = 55*ONE_ATMOSPHERE
level = 1
/obj/machinery/atmospherics/pipe/zpipe/New()
@@ -152,7 +151,7 @@ obj/machinery/atmospherics/pipe/zpipe/up/atmos_init()
var/turf/T = src.loc // hide if turf is not intact
hide(!T.is_plating())
if(level == 1 && !T.is_plating()) hide(1) // but respect level
///////////////////////
// and the down pipe //
@@ -189,7 +188,7 @@ obj/machinery/atmospherics/pipe/zpipe/down/atmos_init()
var/turf/T = src.loc // hide if turf is not intact
hide(!T.is_plating())
if(level == 1 && !T.is_plating()) hide(1) // but respect level
///////////////////////
// supply/scrubbers //