mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Afk fixup (#412)
This commit is contained in:
committed by
TalkingCactus
parent
f510bf2a03
commit
2373e2e485
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user