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
This commit is contained in:
Vire
2022-01-29 01:56:38 -07:00
committed by GitHub
parent 9a27790551
commit 2ecf742bcf
2 changed files with 2 additions and 2 deletions
@@ -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)