Adds a process for general tasks, with lower precision/update rate. Makes processes use last_object properly.

This commit is contained in:
PsiOmegaDelta
2015-11-29 12:54:25 +01:00
parent 8705749683
commit 9c9d7f0356
12 changed files with 106 additions and 99 deletions

View File

@@ -4,7 +4,8 @@
/datum/controller/process/inactivity/doWork()
if(config.kick_inactive)
for(var/client/C in clients)
for(last_object in clients)
var/client/C = last_object
if(!C.holder && C.is_afk(config.kick_inactive MINUTES))
if(!istype(C.mob, /mob/dead))
log_access("AFK: [key_name(C)]")