From 2ecf742bcfbe05017fd77e26d6a3a6eb2fd2dd51 Mon Sep 17 00:00:00 2001 From: Vire <66576896+Maurukas@users.noreply.github.com> Date: Sat, 29 Jan 2022 01:56:38 -0700 Subject: [PATCH] Fix camera nets (#64429) About The Pull Request Closes #62528 Closes #64229 #60805 added \improper to a number of area names. This broke cameras for these areas, as apparently tgui does not respect \improper. This wraps the improper area name in a format string before it is assigned to the c_tag. In this PR three mappers write one line of code. Thanks to @Sealed101 for doing the legwork. Why It's Good For The Game Security players will appreciate having their cameras back. Changelog cl Vire, san7890, mrmelbert, Sealed101 fix: Autonamed cameras should no longer show static in camera consoles. /cl --- code/game/machinery/computer/camera.dm | 2 +- code/modules/modular_computers/file_system/programs/secureye.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm index bbc3fc02bbc..6e42cf93b7b 100644 --- a/code/game/machinery/computer/camera.dm +++ b/code/game/machinery/computer/camera.dm @@ -126,7 +126,7 @@ return if(action == "switch_camera") - var/c_tag = params["name"] + var/c_tag = format_text(params["name"]) var/list/cameras = get_available_cameras() var/obj/machinery/camera/selected_camera = cameras[c_tag] active_camera = selected_camera diff --git a/code/modules/modular_computers/file_system/programs/secureye.dm b/code/modules/modular_computers/file_system/programs/secureye.dm index 717d30ff0b4..d36bf7d4fb9 100644 --- a/code/modules/modular_computers/file_system/programs/secureye.dm +++ b/code/modules/modular_computers/file_system/programs/secureye.dm @@ -120,7 +120,7 @@ return if(action == "switch_camera") - var/c_tag = params["name"] + var/c_tag = format_text(params["name"]) var/list/cameras = get_available_cameras() var/obj/machinery/camera/selected_camera = cameras[c_tag] camera_ref = WEAKREF(selected_camera)