From d4b92043160da8d900af19e2140b283d132a6d95 Mon Sep 17 00:00:00 2001 From: cib Date: Fri, 4 May 2012 07:56:19 -0700 Subject: [PATCH] No, scanning over all the objects in the world every tick is not a good way to keep user interfaces up to date. --- code/game/algorithm.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/algorithm.dm b/code/game/algorithm.dm index 3a6d9407f6d..2b1740237a5 100644 --- a/code/game/algorithm.dm +++ b/code/game/algorithm.dm @@ -187,15 +187,18 @@ proc/countJob(rank) return equipped /proc/AutoUpdateAI(obj/subject) +/* if (subject!=null) for(var/mob/living/silicon/ai/M in world) if ((M.client && M.machine == subject)) subject.attack_ai(M) +*/ /proc/AutoUpdateTK(obj/subject) - if (subject!=null) +/* if (subject!=null) for(var/obj/item/tk_grab/T in world) if (T.host) var/mob/M = T.host if(M.client && M.machine == subject) subject.attack_hand(M) +*/ \ No newline at end of file