Check power on machine build

This commit is contained in:
Aronai Sieyes
2020-05-08 13:00:40 -04:00
parent 0b8872b801
commit 00bda74f95

View File

@@ -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)