From 291c081731e6899d5eed09d1fb50645de5f07e30 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Thu, 8 Feb 2024 02:29:31 +0300 Subject: [PATCH] [MIRROR] Machinery cannot be interacted with by AI when its turf is off-camera (#1845) * Machinery cannot be interacted with by AI when its turf is off-camera (#81250) --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> --- code/game/machinery/_machinery.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index f8d05a885d6..33cd8a96968 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -669,6 +669,9 @@ /obj/machinery/ui_act(action, list/params) add_fingerprint(usr) update_last_used(usr) + if(isAI(usr) && !GLOB.cameranet.checkTurfVis(get_turf(src))) //We check if they're an AI specifically here, so borgs can still access off-camera stuff. + to_chat(usr, span_warning("You can no longer connect to this device!")) + return FALSE return ..() /obj/machinery/Topic(href, href_list)