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:
ACCount
2017-11-07 23:25:16 +03:00
committed by CitadelStationBot
parent 36234e94d4
commit 0d691189aa
3 changed files with 25 additions and 17 deletions
+13
View File
@@ -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