mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user