From 00bda74f95493baa37480880362758cdca921bcd Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Fri, 8 May 2020 13:00:40 -0400 Subject: [PATCH] Check power on machine build --- code/game/machinery/machinery.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index b0b63fc778..911c97c6b4 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -121,7 +121,7 @@ Class Procs: if(ispath(circuit)) circuit = new circuit(src) -/obj/machinery/Initialize() +/obj/machinery/Initialize(var/mapload) . = ..() global.machines += src if(ispath(circuit)) @@ -130,6 +130,8 @@ Class Procs: START_MACHINE_PROCESSING(src) else START_PROCESSING(SSfastprocess, src) + if(!mapload) + power_change() /obj/machinery/Destroy() if(!speed_process)