From e4defb020287a6895ebc69d70d5ae26d32c41579 Mon Sep 17 00:00:00 2001 From: Markolie Date: Wed, 24 Dec 2014 19:15:13 +0100 Subject: [PATCH] Autolathe hack fix --- code/datums/wires/autolathe.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/datums/wires/autolathe.dm b/code/datums/wires/autolathe.dm index e382ce620f1..77a8ce6c03c 100644 --- a/code/datums/wires/autolathe.dm +++ b/code/datums/wires/autolathe.dm @@ -27,7 +27,7 @@ var/const/AUTOLATHE_DISABLE_WIRE = 4 var/obj/machinery/autolathe/A = holder switch(index) if(AUTOLATHE_HACK_WIRE) - A.hacked = !mended + A.adjust_hacked(!mended) if(AUTOLATHE_SHOCK_WIRE) A.shocked = !mended if(AUTOLATHE_DISABLE_WIRE) @@ -39,10 +39,10 @@ var/const/AUTOLATHE_DISABLE_WIRE = 4 var/obj/machinery/autolathe/A = holder switch(index) if(AUTOLATHE_HACK_WIRE) - A.hacked = !A.hacked + A.adjust_hacked(!A.hacked) spawn(50) if(A && !IsIndexCut(index)) - A.hacked = 0 + A.adjust_hacked(0) Interact(usr) if(AUTOLATHE_SHOCK_WIRE) A.shocked = !A.shocked