Multiple fixes in RPD and pipe construciton (#32399)
* Multiple fixes in RPD and pipe construciton * Integrates another fix PR to avoid conflicts
This commit is contained in:
committed by
CitadelStationBot
parent
36234e94d4
commit
0d691189aa
@@ -377,6 +377,19 @@ SUBSYSTEM_DEF(air)
|
||||
AM.build_network()
|
||||
CHECK_TICK
|
||||
|
||||
/datum/controller/subsystem/air/proc/get_pipe_cache(type, direction=NORTH)
|
||||
if(!pipe_construction_generation_cache[type])
|
||||
pipe_construction_generation_cache[type] = list()
|
||||
|
||||
if(!pipe_construction_generation_cache[type]["[direction]"])
|
||||
var/obj/machinery/atmospherics/cached = new type(null, FALSE, direction)
|
||||
pipe_construction_generation_cache[type]["[direction]"] = cached
|
||||
STOP_PROCESSING(SSmachines, cached)
|
||||
STOP_PROCESSING(SSfastprocess, cached)
|
||||
GLOB.machines -= cached
|
||||
|
||||
return pipe_construction_generation_cache[type]["[direction]"]
|
||||
|
||||
|
||||
#undef SSAIR_PIPENETS
|
||||
#undef SSAIR_ATMOSMACHINERY
|
||||
|
||||
Reference in New Issue
Block a user