[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 <esainane+github@gmail.com>
This commit is contained in:
SkyratBot
2021-01-19 11:36:36 +01:00
committed by GitHub
parent 609f807e4d
commit 8ecd289e3d
@@ -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()