Merge pull request #7209 from VOREStation/Arokha/statsleep

Remove stat() sleeping
This commit is contained in:
Atermonera
2020-05-23 18:36:37 -07:00
committed by GitHub
-12
View File
@@ -342,18 +342,6 @@
else
. = ..()
// Byond seemingly calls stat, each tick.
// Calling things each tick can get expensive real quick.
// So we slow this down a little.
// See: http://www.byond.com/docs/ref/info.html#/client/proc/Stat
/client/Stat()
. = ..()
if (holder)
sleep(1)
else
stoplag(5)
/client/proc/last_activity_seconds()
return inactivity / 10