Put APCs and SMESes into GLOB lists to ease iteration

This commit is contained in:
Aronai Sieyes
2020-05-11 22:05:41 -04:00
parent 9c6aeb6aa0
commit 96da7be01b
18 changed files with 92 additions and 36 deletions

View File

@@ -126,7 +126,7 @@
var/z = get_z(nano_host())
var/list/map_levels = using_map.get_map_levels(z)
for(var/obj/machinery/power/smes/buildable/SMES in machines)
for(var/obj/machinery/power/smes/buildable/SMES in GLOB.smeses)
if(!(SMES.z in map_levels))
continue
if(SMES.RCon_tag && (SMES.RCon_tag != "NO_TAG") && SMES.RCon)