no build network on every process

scrubbers by default will scrub toxins.
This commit is contained in:
D3athrow
2015-02-01 14:35:02 -06:00
parent cb2c89b4fc
commit f503044019
3 changed files with 5 additions and 4 deletions

View File

@@ -77,7 +77,8 @@ Pipelines + Other Objects -> Pipe network
// I asked /tg/ and bay and they have no idea why this is here, so into the trash it goes. - N3X // I asked /tg/ and bay and they have no idea why this is here, so into the trash it goes. - N3X
// Re-enabled for debugging. // Re-enabled for debugging.
/obj/machinery/atmospherics/process() /obj/machinery/atmospherics/process()
build_network() //build_network()
//testing("[src] called parent process to build_network()")
/obj/machinery/atmospherics/proc/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference) /obj/machinery/atmospherics/proc/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
// Check to see if should be added to network. Add self if so and adjust variables appropriately. // Check to see if should be added to network. Add self if so and adjust variables appropriately.

View File

@@ -15,7 +15,7 @@
var/on = 0 var/on = 0
var/scrubbing = 1 //0 = siphoning, 1 = scrubbing var/scrubbing = 1 //0 = siphoning, 1 = scrubbing
var/scrub_CO2 = 1 var/scrub_CO2 = 1
var/scrub_Toxins = 0 var/scrub_Toxins = 1
var/scrub_N2O = 0 var/scrub_N2O = 0
var/scrub_O2 = 0 var/scrub_O2 = 0
var/scrub_N2 = 0 var/scrub_N2 = 0
@@ -27,7 +27,7 @@
var/radio_filter_out var/radio_filter_out
var/radio_filter_in var/radio_filter_in
New() New()
..() ..()s
area_uid = areaMaster.uid area_uid = areaMaster.uid
if (!id_tag) if (!id_tag)
assign_uid() assign_uid()

View File

@@ -149,7 +149,7 @@
/obj/machinery/atmospherics/pipe/simple/process() /obj/machinery/atmospherics/pipe/simple/process()
if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle
..() build_network()
else else
. = PROCESS_KILL . = PROCESS_KILL