[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>
This commit is contained in:
SkyratBot
2022-01-29 12:24:38 +01:00
committed by GitHub
parent 4f1c26bb8e
commit 5865a6cb3d
2 changed files with 2 additions and 2 deletions

View File

@@ -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)