mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fixes pipelines and their gas_mixtures hard deleting (#27551)
* WIP * Now it works, I think
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user