mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Machine list is now stored in SSmachines | Remove excessive use of global lists for specific machine types [MDB IGNORE] (#22481)
* Machine list is now stored in SSmachines | Remove excessive use of global lists for specific machine types * Resolve merge conflicts * Modular adjustments * destroy this double return on destroy --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: Giz <vinylspiders@gmail.com>
This commit is contained in:
@@ -299,7 +299,7 @@
|
||||
areas_all.Add(A.type)
|
||||
CHECK_TICK
|
||||
|
||||
for(var/obj/machinery/power/apc/APC in GLOB.apcs_list)
|
||||
for(var/obj/machinery/power/apc/APC as anything in SSmachines.get_machines_by_type(/obj/machinery/power/apc))
|
||||
var/area/A = APC.area
|
||||
if(!A)
|
||||
dat += "Skipped over [APC] in invalid location, [APC.loc]."
|
||||
@@ -328,7 +328,7 @@
|
||||
areas_with_RC.Add(A.type)
|
||||
CHECK_TICK
|
||||
|
||||
for(var/obj/machinery/light/L in GLOB.machines)
|
||||
for(var/obj/machinery/light/L as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/light))
|
||||
var/area/A = get_area(L)
|
||||
if(!A)
|
||||
dat += "Skipped over [L] in invalid location, [L.loc].<br>"
|
||||
@@ -337,7 +337,7 @@
|
||||
areas_with_light.Add(A.type)
|
||||
CHECK_TICK
|
||||
|
||||
for(var/obj/machinery/light_switch/LS in GLOB.machines)
|
||||
for(var/obj/machinery/light_switch/LS as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/light_switch))
|
||||
var/area/A = get_area(LS)
|
||||
if(!A)
|
||||
dat += "Skipped over [LS] in invalid location, [LS.loc].<br>"
|
||||
|
||||
Reference in New Issue
Block a user