resolves atmos runtimes

This commit is contained in:
duncathan
2016-01-19 00:52:06 -06:00
parent 2f83c4040e
commit 4e61b999fa
3 changed files with 9 additions and 2 deletions
@@ -150,6 +150,9 @@ Helpers
/obj/machinery/atmospherics/components/proc/update_parents()
for(DEVICE_TYPE_LOOP)
var/datum/pipeline/parent = PARENT_I
if(!parent)
PROCCRASH("Component is missing a pipenet! Rebuilding...")
build_network()
parent.update = 1
/obj/machinery/atmospherics/components/returnPipenets()
@@ -51,10 +51,11 @@
/obj/machinery/atmospherics/pipe/heat_exchanging/process()
var/datum/gas_mixture/pipe_air = return_air()
if(!pipe_air)
if(!parent)
return //machines subsystem fires before atmos is initialized so this prevents race condition runtimes
var/datum/gas_mixture/pipe_air = return_air()
//Heat causes pipe to glow
if(pipe_air.temperature && (icon_temperature > 500 || pipe_air.temperature > 500)) //glow starts at 500K
if(abs(pipe_air.temperature - icon_temperature) > 10)
+3
View File
@@ -1220,3 +1220,6 @@ B --><-- A
for(var/atom/location = A.loc, location, location = location.loc)
if(location == src)
return 1
/proc/PROCCRASH(msg)
CRASH(msg)