From 121a711265935bc994a59a4080d4cf72129779b1 Mon Sep 17 00:00:00 2001 From: ShadowLarkens Date: Sun, 26 Jul 2020 19:52:03 -0700 Subject: [PATCH] Fix camera consoles being broke as fuck --- code/game/machinery/computer/camera.dm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm index f87d69a9a7..dc109ba5da 100644 --- a/code/game/machinery/computer/camera.dm +++ b/code/game/machinery/computer/camera.dm @@ -17,9 +17,12 @@ /obj/machinery/computer/security/Initialize() . = ..() if(!LAZYLEN(network)) - network = using_map.station_networks.Copy() + network = get_default_networks() camera = new(src, network) +/obj/machinery/computer/security/proc/get_default_networks() + . = using_map.station_networks.Copy() + /obj/machinery/computer/security/Destroy() QDEL_NULL(camera) return ..() @@ -34,7 +37,7 @@ tgui_interact(user) /obj/machinery/computer/security/attack_ai(mob/user) - to_chat(user, "You realise its kind of stupid to access a camera console when you have the entire camera network at your metaphorical fingertips") + to_chat(user, "You realise its kind of stupid to access a camera console when you have the entire camera network at your metaphorical fingertips.") return /obj/machinery/computer/security/proc/set_network(list/new_network) @@ -111,10 +114,8 @@ circuit = /obj/item/weapon/circuitboard/security/engineering light_color = "#FAC54B" -/obj/machinery/computer/security/engineering/New() - if(!network) - network = engineering_networks.Copy() - ..() +/obj/machinery/computer/security/engineering/get_default_networks() + . = engineering_networks.Copy() /obj/machinery/computer/security/nuclear name = "head mounted camera monitor" @@ -122,7 +123,4 @@ icon_state = "syndicam" network = list(NETWORK_MERCENARY) circuit = null - -/obj/machinery/computer/security/nuclear/New() - ..() - req_access = list(150) \ No newline at end of file + req_access = list(150)