From 8e8d1571f0bfb2d9892da11bed8323a90c5878ca Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Thu, 14 Jan 2021 20:43:27 -0700 Subject: [PATCH] sigh --- code/modules/movespeed/_movespeed_modifier.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/movespeed/_movespeed_modifier.dm b/code/modules/movespeed/_movespeed_modifier.dm index e18fafad48..46d10afe7f 100644 --- a/code/modules/movespeed/_movespeed_modifier.dm +++ b/code/modules/movespeed/_movespeed_modifier.dm @@ -219,8 +219,10 @@ GLOBAL_LIST_EMPTY(movespeed_modification_cache) . = M.apply_multiplicative(., src) // your delay decreases, "give" the delay back to the client cached_multiplicative_slowdown = . + if(!client) + return var/diff = (client.last_move - client.move_delay) - cached_multiplicative_slowdown - if((diff > 0) && client) + if(diff > 0) if(client.move_delay > world.time + 1.5) client.move_delay -= diff var/timeleft = world.time - client.move_delay