Fixes AI detector runtiming when it finds machine-users (#90448)

## About The Pull Request

Fixes this runtime 


![image](https://github.com/user-attachments/assets/eef1887e-52ae-4db6-8742-ccb66a791482)

That list can contain non-AI cameras which I don't think was the
intention at all. So we add typechecking to ensure we aren't trying to
check a var that doesn't exist.

## Why It's Good For The Game

More reliable AI detection tools hopefully

## Changelog

🆑
fix: fixes the AI detector breaking if there is a machinery-camera
operating user nearby (like xenobio console or camera console for
instance)
/🆑
This commit is contained in:
Bloop
2025-04-29 17:41:26 -06:00
committed by Shadow-Quill
parent de14fc2b81
commit 38c4fff57d
+1 -1
View File
@@ -205,7 +205,7 @@
var/turf/our_turf = get_turf(src)
detect_state = PROXIMITY_NONE
for(var/mob/eye/camera/ai/AI_eye as anything in GLOB.camera_eyes)
for(var/mob/eye/camera/ai/AI_eye in GLOB.camera_eyes)
if(!AI_eye.ai_detector_visible)
continue