From 907793619d35c673f882d9badf1d18652db148f7 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Thu, 6 Sep 2012 06:53:52 +0000 Subject: [PATCH] proc/activeais() now fetches AIs from the list of living mobs, not the list of mobs with clients. This fixes an issue where AIs could prevent being selected for law updates by logging out for a bit. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4635 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/procs/helpers.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/defines/procs/helpers.dm b/code/defines/procs/helpers.dm index 655bba34a79..3a6bcf447b9 100644 --- a/code/defines/procs/helpers.dm +++ b/code/defines/procs/helpers.dm @@ -362,7 +362,7 @@ Turf and target are seperate in case you want to teleport some distance from a t var/list/names = list() var/list/ais = list() var/list/namecounts = list() - for (var/mob/living/silicon/ai/A in player_list) + for (var/mob/living/silicon/ai/A in living_mob_list) var/name = A.real_name if (A.stat == 2) continue @@ -373,7 +373,7 @@ Turf and target are seperate in case you want to teleport some distance from a t namecounts[name] = 1 ais[name] = A - if (ais.len) + if(ais.len) select = input("AI signals detected:", "AI selection") in ais return ais[select]