From 5865a6cb3dee3f598dc84a45e72d2f77d16aff2a Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 29 Jan 2022 12:24:38 +0100 Subject: [PATCH] [MIRROR] Fix autonamed cameras showing static in consoles [MDB IGNORE] (#11103) * 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 * Fix autonamed cameras showing static in consoles Co-authored-by: Vire <66576896+Maurukas@users.noreply.github.com> --- 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)