Fixes pipelines and their gas_mixtures hard deleting (#27551)

* WIP

* Now it works, I think
This commit is contained in:
Exxion
2020-08-14 10:49:17 -04:00
committed by GitHub
parent 182668857e
commit d8eb32575b
2 changed files with 31 additions and 9 deletions

View File

@@ -15,8 +15,9 @@
if(network) //For the pipenet rebuild
qdel(network)
network = null
if(air && air.volume) //For the pipeline rebuild next tick
temporarily_store_air()
if(air) //For the pipeline rebuild next tick
if(air.total_moles)
temporarily_store_air()
qdel(air)
air = null
//Null the fuck out of all these references
@@ -101,9 +102,12 @@
/datum/pipeline/proc/network_expand(datum/pipe_network/new_network, obj/machinery/atmospherics/pipe/reference)
if(new_network.line_members.Find(src))
if(src in new_network.line_members)
return 0
if(network && (network != new_network))
return new_network.merge(network)
new_network.line_members += src
network = new_network