[MIRROR] Reduce Lists Memory usage, update CI (#10929)

This commit is contained in:
Cameron Lennox
2025-05-19 21:00:24 +02:00
committed by GitHub
parent f4895e74e9
commit 209934afa8
18 changed files with 122 additions and 201 deletions
@@ -49,16 +49,6 @@
if(!T)
return PROXIMITY_OFF_CAMERANET
// Security is also a concern, so we need to see if any cameras are in use.
// Note that this will trigger upon the security console being used, regardless if someone is actually watching,
// because there isn't a nice way to test if someone is actually looking. Probably better that way too.
var/list/our_local_area = range(range_alert, T)
for(var/obj/machinery/camera/C in our_local_area)
if(C.camera_computers_using_this.len) // Only check cameras actively being used.
var/list/their_local_area = C.can_see(range_alert)
if(T in their_local_area)
return PROXIMITY_ON_SCREEN
// Now for the somewhat harder AI cameranet checks.
// Check if we are even on the cameranet.
@@ -451,8 +451,8 @@ var/global/list/obj/item/communicator/all_communicators = list() //Don't change
/obj/machinery/camera/communicator/Initialize(mapload)
. = ..()
client_huds |= GLOB.global_hud.whitense
client_huds |= GLOB.global_hud.darkMask
LAZYOR(client_huds, GLOB.global_hud.whitense)
LAZYOR(client_huds, GLOB.global_hud.darkMask)
//It's the 26th century. We should have smart watches by now.
/obj/item/communicator/watch