no cam tracking by sec / ai in dorms

This commit is contained in:
Kashargul
2024-01-02 08:40:36 +01:00
committed by GitHub
parent 400187ced7
commit 93ac4d333c
6 changed files with 50 additions and 5 deletions
+3 -2
View File
@@ -175,15 +175,16 @@
. = TRUE
/datum/tgui_module/camera/proc/update_active_camera_screen()
var/turf/newturf = get_turf(active_camera)
var/area/B = newturf?.loc // No cam tracking in dorms!
// Show static if can't use the camera
if(!active_camera?.can_use())
if(!active_camera?.can_use() || B.block_tracking)
show_camera_static()
return TRUE
// If we're not forcing an update for some reason and the cameras are in the same location,
// we don't need to update anything.
// Most security cameras will end here as they're not moving.
var/turf/newturf = get_turf(active_camera)
if(newturf == last_camera_turf)
return