mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 15:45:05 +01:00
[MIRROR] Strays away from GLOB.machines when possible [MDB IGNORE] (#17478)
* Strays away from GLOB.machines when possible (#71100) ## About The Pull Request This replaces needless GLOB.machines with more precise lists whenever one existed, plus adding a new one for CTF machines. ## Why It's Good For The Game GLOB.machines holds every single /obj/machinery in the game, so checking the whole list for stuff is pretty big. This aims to cut that down by using smaller lists whenever possible. I also gave CTF a new list because it checked machines very often. ## Changelog Nothing player facing. * Strays away from GLOB.machines when possible Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
@@ -321,7 +321,7 @@
|
||||
areas_with_air_alarm.Add(A.type)
|
||||
CHECK_TICK
|
||||
|
||||
for(var/obj/machinery/requests_console/RC in GLOB.machines)
|
||||
for(var/obj/machinery/requests_console/RC in GLOB.allConsoles)
|
||||
var/area/A = get_area(RC)
|
||||
if(!A)
|
||||
dat += "Skipped over [RC] in invalid location, [RC.loc].<br>"
|
||||
@@ -348,7 +348,7 @@
|
||||
areas_with_LS.Add(A.type)
|
||||
CHECK_TICK
|
||||
|
||||
for(var/obj/item/radio/intercom/I in GLOB.machines)
|
||||
for(var/obj/item/radio/intercom/I as anything in GLOB.intercoms_list)
|
||||
var/area/A = get_area(I)
|
||||
if(!A)
|
||||
dat += "Skipped over [I] in invalid location, [I.loc].<br>"
|
||||
@@ -357,7 +357,7 @@
|
||||
areas_with_intercom.Add(A.type)
|
||||
CHECK_TICK
|
||||
|
||||
for(var/obj/machinery/camera/C in GLOB.machines)
|
||||
for(var/obj/machinery/camera/C as anything in GLOB.cameranet.cameras)
|
||||
var/area/A = get_area(C)
|
||||
if(!A)
|
||||
dat += "Skipped over [C] in invalid location, [C.loc].<br>"
|
||||
|
||||
Reference in New Issue
Block a user