Merge pull request #23059 from MrStonedOne/patch-287

Fixes afk tracker
This commit is contained in:
Joan Lung
2017-01-17 18:42:23 -05:00
committed by GitHub
+2 -2
View File
@@ -20,7 +20,7 @@ var/datum/subsystem/ping/SSping
while (length(currentrun))
var/client/C = currentrun[currentrun.len]
currentrun.len--
if (!C || world.time - C.connection_time < PING_BUFFER_TIME)
if (!C || world.time - C.connection_time < PING_BUFFER_TIME || C.inactivity >= (wait-1))
if (MC_TICK_CHECK)
return
continue
@@ -30,4 +30,4 @@ var/datum/subsystem/ping/SSping
currentrun = null
#undef PING_BUFFER_TIME
#undef PING_BUFFER_TIME