From 090c9bd265bd5b02027f21cc924678072bdb931c Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Sun, 28 Jan 2018 20:45:25 -0500 Subject: [PATCH] Adds idle time check --- code/controllers/subsystems/persist_vr.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystems/persist_vr.dm b/code/controllers/subsystems/persist_vr.dm index baae12c955..651abe2130 100644 --- a/code/controllers/subsystems/persist_vr.dm +++ b/code/controllers/subsystems/persist_vr.dm @@ -28,7 +28,7 @@ SUBSYSTEM_DEF(persist) while (currentrun.len) var/mob/M = currentrun[currentrun.len] currentrun.len-- - if (QDELETED(M) || !istype(M) || !M.mind || !M.client) + if (QDELETED(M) || !istype(M) || !M.mind || !M.client || TICKS2DS(M.client.inactivity) > wait) continue // Try and detect job and department of mob