From 15362206dd7c8f6602d3c90796db08f667afacaf Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sat, 24 Jun 2017 22:22:44 -0500 Subject: [PATCH] Fixes the server taking for fucking ever to initialize for local test --- code/__HELPERS/unsorted.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index ada97ea385..cf5902cb0a 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1210,6 +1210,9 @@ proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types()) #define DELTA_CALC max(((max(world.tick_usage, world.cpu) / 100) * max(Master.sleep_delta,1)), 1) /proc/stoplag() + if (!Master || !(Master.current_runlevel & RUNLEVELS_DEFAULT)) + sleep(world.tick_lag) + return 1 . = 0 var/i = 1 do