From b5934c161334cdf5d20fbbe8c7130dabc62906e3 Mon Sep 17 00:00:00 2001 From: ihatethisengine Date: Thu, 4 Apr 2024 23:49:47 +0300 Subject: [PATCH] bbbb --- code/game/machinery/computer/camera_console.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/computer/camera_console.dm b/code/game/machinery/computer/camera_console.dm index bd5e4d96231c..0c6d2326ebe1 100644 --- a/code/game/machinery/computer/camera_console.dm +++ b/code/game/machinery/computer/camera_console.dm @@ -214,13 +214,13 @@ /obj/structure/machinery/computer/cameras/wooden_tv/prop/ui_act(action, params) . = ..() if(action != "switch_camera") - return . + return broadcastingcamera = null if (!istype(current, /obj/structure/machinery/camera/correspondent)) - return . + return var/obj/structure/machinery/camera/correspondent/corr_cam = current if (!corr_cam.linked_broadcasting) - return . + return broadcastingcamera = corr_cam.linked_broadcasting RegisterSignal(broadcastingcamera, COMSIG_BROADCAST_GO_LIVE, TYPE_PROC_REF(/obj/structure/machinery/computer/cameras/wooden_tv/prop, go_back_live))