From 2a7405c449d4fa4bf8df12202d17e9da772a3d2e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 25 Aug 2020 00:01:16 +0200 Subject: [PATCH] [MIRROR] Fixes powernets improperly rebuilding when a ship moves (#501) * Fixes powernets imporoperly rebuilding when a ship moves (#53132) * Fixes powernets improperly rebuilding when a ship moves Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> --- code/modules/power/cable.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm index 347a7f081f0..0d45c2387c7 100644 --- a/code/modules/power/cable.dm +++ b/code/modules/power/cable.dm @@ -332,13 +332,12 @@ GLOBAL_LIST_INIT(wire_node_generating_types, typecacheof(list(/obj/structure/gri var/datum/powernet/newPN = new()// creates a new powernet... propagate_network(O, newPN)//... and propagates it to the other side of the cable -//Makes a new network for the cable and propgates it. -//If it finds another network in the process, aborts and uses that one and propagates off of it instead +//Makes a new network for the cable and propgates it. If we already have one, just die /obj/structure/cable/proc/propagate_if_no_network() if(powernet) return var/datum/powernet/newPN = new() - propagate_network(src, newPN, TRUE) + propagate_network(src, newPN) // cut the cable's powernet at this cable and updates the powergrid /obj/structure/cable/proc/cut_cable_from_powernet(remove = TRUE)