this was a far better solution

This commit is contained in:
duncathan
2015-08-14 17:26:07 -06:00
parent 589c1ed165
commit ca09f34c3a
2 changed files with 10 additions and 4 deletions
@@ -20,7 +20,8 @@ On top of that, now people can add component-speciic procs/vars if they want!
#define NODE3 "n3"
/obj/machinery/atmospherics/components/
var/welded //Used on pumps and scrubbers
var/welded = 0 //Used on pumps and scrubbers
var/showpipe = 0
var/device_type = 0//used for initialization stuff
//UNARY = 1
@@ -56,12 +57,18 @@ Iconnery
/obj/machinery/atmospherics/components/proc/update_icon_nopipes()
return
/obj/machinery/atmospherics/components/update_icon() //not working
/obj/machinery/atmospherics/components/update_icon()
update_icon_nopipes()
underlays.Cut()
if(!(level == 2 || istype(loc, /turf/simulated/floor/plating))) //shows pipes when laid on plating, too
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
var/connected = 0