Afk fixup (#412)

This commit is contained in:
CitadelStationBot
2017-04-15 15:45:29 -04:00
committed by TalkingCactus
parent f510bf2a03
commit 2373e2e485
6 changed files with 24 additions and 15 deletions
+2 -2
View File
@@ -313,10 +313,10 @@
// Will return a list of active candidates. It increases the buffer 5 times until it finds a candidate which is active within the buffer.
/proc/get_candidates(be_special_type, afk_bracket=3000, var/jobbanType)
/proc/get_candidates(be_special_type, afk_bracket = config.inactivity_period, jobbanType)
var/list/candidates = list()
// Keep looping until we find a non-afk candidate within the time bracket (we limit the bracket to 10 minutes (6000))
while(!candidates.len && afk_bracket < 6000)
while(!candidates.len && afk_bracket < config.afk_period)
for(var/mob/dead/observer/G in GLOB.player_list)
if(G.client != null)
if(!(G.mind && G.mind.current && G.mind.current.stat != DEAD))