mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Fixes AI detector runtiming when it finds machine-users (#90448)
## About The Pull Request Fixes this runtime  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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user