Afk fixup (#412)

This commit is contained in:
CitadelStationBot
2017-04-15 14:45:29 -05:00
committed by TalkingCactus
parent f510bf2a03
commit 2373e2e485
6 changed files with 24 additions and 15 deletions

View File

@@ -549,10 +549,10 @@ GLOBAL_LIST(external_rsc_urls)
//checks if a client is afk
//3000 frames = 5 minutes
/client/proc/is_afk(duration=3000)
/client/proc/is_afk(duration = config.inactivity_period)
if(inactivity > duration)
return inactivity
return 0
return FALSE
// Byond seemingly calls stat, each tick.
// Calling things each tick can get expensive real quick.