mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user