From 9bc6c7eb9af9f471cd356155dd3536ed7a38b669 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Sun, 22 Jan 2012 16:42:56 -0700 Subject: [PATCH] Fixed some errors. --- code/game/machinery/OpTable.dm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm index 4aebb8e1e6d..d4e4ea682ab 100644 --- a/code/game/machinery/OpTable.dm +++ b/code/game/machinery/OpTable.dm @@ -10,6 +10,7 @@ active_power_usage = 5 var/mob/living/carbon/victim = null var/strapped = 0.0 + var/updatesicon = 1 var/obj/machinery/computer/operating/computer = null var/id = 0.0 @@ -94,10 +95,12 @@ var/mob/M = locate(/mob/living/carbon, src.loc) if(M.resting) src.victim = M - icon_state = "table2-active" + if(updatesicon) + icon_state = "table2-active" return 1 src.victim = null - icon_state = "table2-idle" + if(updatesicon) + icon_state = "table2-idle" processing_objects.Remove(src) return 0 @@ -118,7 +121,8 @@ for(var/obj/O in src) O.loc = src.loc src.add_fingerprint(user) - icon_state = "table2-active" + if(updatesicon) + icon_state = "table2-active" src.victim = M processing_objects.Add(src) del(W) @@ -136,6 +140,7 @@ density = 1 anchored = 0 id = null + updatesicon = 0 New() ..()