Merge pull request #4251 from ComicIronic/VentChangePipe

Ventcrawling fixes
This commit is contained in:
d3athrow
2015-05-03 18:44:54 -05:00
5 changed files with 31 additions and 17 deletions

View File

@@ -56,11 +56,9 @@ var/global/list/cryo_health_indicator = list( "full" = image("icon" = 'icons/obj
/obj/machinery/atmospherics/unary/cryo_cell/initialize()
if(node) return
for(var/cdir in cardinal)
if(node) break
for(var/obj/machinery/atmospherics/target in get_step(src,cdir))
if(target.initialize_directions & get_dir(target,src))
node = target
break
node = findConnecting(cdir)
if(node)
break
update_icon()
/obj/machinery/atmospherics/unary/cryo_cell/Destroy()