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
This commit is contained in:
elly1989@rocketmail.com
2012-09-06 06:53:52 +00:00
parent 6deb60261d
commit 907793619d

View File

@@ -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]