From 8ecd289e3dcaa33a411ce8dca2dedcdefe4a1fb7 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 19 Jan 2021 11:36:36 +0100 Subject: [PATCH] [MIRROR] HFR: Fix activation after deconstruction (#2785) * HFR: Fix activation after deconstruction (#56249) core/var/corners is assumed to be a list at all times. Previously, deconstructing then reconstructing the HFR would get one stuck where: - "Activate the machine first by using a multitool on the interface." when attempting to use the interface - "You already activated the machine" when attempting to use a multitool on the interface All components, except the core, would show as correctly inactive. This situation can be worked around by deconstructing and reconstructing the core, or varediting the core to have active = 0 and corners = list(). This fixes runtimes of the form: > [21:03:06] Runtime in hypertorus.dm,368: type mismatch: 0 |= HFR corner (/obj/machinery/hypertorus/corner) > proc name: check part connectivity (/obj/machinery/atmospherics/components/unary/hypertorus/core/proc/check_part_connectivity) * HFR: Fix activation after deconstruction Co-authored-by: esainane --- .../atmospherics/machinery/components/fusion/hypertorus.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm b/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm index 47e8c6e125e..55d322acd20 100644 --- a/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm +++ b/code/modules/atmospherics/machinery/components/fusion/hypertorus.dm @@ -466,7 +466,7 @@ for(var/obj/machinery/hypertorus/corner/corner in corners) corner.active = FALSE corner.update_icon() - corners = null + corners = list() QDEL_NULL(soundloop) /obj/machinery/atmospherics/components/unary/hypertorus/core/proc/check_fuel()