Merge pull request #3787 from Citadel-Station-13/upstream-merge-32281
[MIRROR] [READY]Helps address atmospherics nullspace runtimes
This commit is contained in:
@@ -27,6 +27,7 @@ SUBSYSTEM_DEF(air)
|
||||
var/list/hotspots = list()
|
||||
var/list/networks = list()
|
||||
var/list/obj/machinery/atmos_machinery = list()
|
||||
var/list/pipe_construction_generation_cache = list()
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -148,13 +148,15 @@ Buildable meters
|
||||
return rotate()
|
||||
|
||||
/obj/item/pipe/proc/get_pipe_cache(type, direction)
|
||||
var/static/list/obj/machinery/atmospherics/check_cache
|
||||
var/list/obj/machinery/atmospherics/check_cache = SSair.pipe_construction_generation_cache
|
||||
if(!islist(check_cache))
|
||||
check_cache = list()
|
||||
if(!check_cache[type])
|
||||
check_cache[type] = list()
|
||||
if(!check_cache[type]["[direction]"])
|
||||
check_cache[type]["[direction]"] = new type(null, null, direction)
|
||||
var/obj/machinery/atmospherics/A = new type(null, FALSE, direction)
|
||||
A.name = "\[CACHE\] [A.name]"
|
||||
check_cache[type]["[direction]"] = A
|
||||
|
||||
return check_cache[type]["[direction]"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user