From c1dc5b3d9d3d02d9d94974a080f38678a80fa4b7 Mon Sep 17 00:00:00 2001 From: HelmCrab <90987989+Thera-Pissed@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:33:20 -0600 Subject: [PATCH] checking if this is what linters is mad about --- code/controllers/subsystem/machines.dm | 4 ++-- code/game/machinery/_machinery.dm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/controllers/subsystem/machines.dm b/code/controllers/subsystem/machines.dm index 7a5360bc930e..8a87e4952603 100644 --- a/code/controllers/subsystem/machines.dm +++ b/code/controllers/subsystem/machines.dm @@ -48,8 +48,8 @@ SUBSYSTEM_DEF(machines) var/obj/machinery/thing = currentrun[currentrun.len] currentrun.len-- if(!QDELETED(thing) && thing.process(seconds) != PROCESS_KILL) - //if(thing.use_power) - //thing.auto_use_power() //add back the power state //need help deciding what to do here other than commenting this out. if still it it doubles a lot of idle machine draws. + if(thing.use_power) + thing.auto_use_power() //add back the power state //need help deciding what to do here other than commenting this out. if still it it doubles a lot of idle machine draws. else processing -= thing if (!QDELETED(thing)) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index 613b0957135d..c96bd1a0afa0 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -278,7 +278,7 @@ Class Procs: updateUsrDialog() update_appearance() -/*/obj/machinery/proc/auto_use_power() //obsolete, tick controller doesn't call this anymore because machines use addStaticPower now. +/obj/machinery/proc/auto_use_power() //obsolete, tick controller doesn't call this anymore because machines use addStaticPower now. if(!powered(power_channel)) return 0 if(use_power == 1) @@ -286,7 +286,7 @@ Class Procs: else if(use_power >= 2) use_power(active_power_usage,power_channel) return 1 -*/ + ///Called when we want to change the value of the `is_operational` variable. Boolean. /obj/machinery/proc/set_is_operational(new_value)