mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Remove stat() sleeping
This commit is contained in:
@@ -400,18 +400,6 @@
|
|||||||
else
|
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()
|
/client/proc/last_activity_seconds()
|
||||||
return inactivity / 10
|
return inactivity / 10
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user