From f7cc37e4459a440c99a39bec2e2e66e34d702b1d Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Sun, 26 Sep 2010 20:22:55 +0000 Subject: [PATCH] Further tweaks to my tweak, it is now working as intended with no unintended side-effects. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@179 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/procs/helpers.dm | 8 +------- code/modules/mob/mob.dm | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/code/defines/procs/helpers.dm b/code/defines/procs/helpers.dm index b77c5759250..c3e8d10ec8d 100644 --- a/code/defines/procs/helpers.dm +++ b/code/defines/procs/helpers.dm @@ -584,13 +584,7 @@ var/list/mob_list = list() for(var/mob/living/silicon/ai/M in world) - if(ticker) - if(ticker.mode == "AI malfunction") - var/datum/game_mode/malfunction/malf = ticker.mode - for (var/datum/mind/B in malf.malf_ai) - if (M.mind == B) - else mob_list.Add(M) - else mob_list.Add(M) + mob_list.Add(M) for(var/mob/living/silicon/robot/M in world) mob_list.Add(M) for(var/mob/living/carbon/human/M in world) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 64a1f64d2f5..c72de30af94 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -1323,7 +1323,7 @@ names.Add(name) namecounts[name] = 1 creatures[name] = B - +/* for (var/mob/living/silicon/decoy/D in world) var/name = "[D.name]" if (name in names) @@ -1333,7 +1333,7 @@ names.Add(name) namecounts[name] = 1 creatures[name] = D - +*/ @@ -1365,6 +1365,16 @@ src.reset_view(null) client.adminobs = 0 else + if(ticker) +// world << "there's a ticker" + if(ticker.mode.name == "AI malfunction") +// world << "ticker says its malf" + var/datum/game_mode/malfunction/malf = ticker.mode + for (var/datum/mind/B in malf.malf_ai) +// world << "comparing [B.current] to [eye]" + if (B.current == eye) + for (var/mob/living/silicon/decoy/D in world) + eye = D if (eye) src.client.eye = eye else