diff --git a/code/__compile_options.dm b/code/__compile_options.dm index 83e2c5c35088..471caf6300f7 100644 --- a/code/__compile_options.dm +++ b/code/__compile_options.dm @@ -182,6 +182,11 @@ * ## Sections follow */ +// ## assets + +/// If defined, we will NOT defer asset generation till later in the game, and will instead do it all at once, during initiialize +// #define DO_NOT_DEFER_ASSETS + // ## AI Holders /** diff --git a/code/__global_init.dm b/code/__global_init.dm index 08cc2aa8b61c..7183a88dd474 100644 --- a/code/__global_init.dm +++ b/code/__global_init.dm @@ -24,3 +24,16 @@ var/world_log_redirected = FALSE /datum/world_log_shunter/New() world.ensure_logging_active() + +var/datum/world_debug_enabler/world_debug_enabler = new + +/datum/world_debug_enabler/proc/debug_loop() + set waitfor = FALSE + debug_loop_impl() + +/** + * the sole job of this is keep ticking so the debug server can still do stuff while no clients are conencted + */ +/datum/world_debug_enabler/proc/debug_loop_impl() + while(TRUE) + sleep(world.tick_lag) diff --git a/code/game/world.dm b/code/game/world.dm index b6340de0bbdd..3b2410bf8639 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -201,10 +201,6 @@ GLOBAL_LIST(topic_status_cache) HandleTestRun() #endif - #ifdef AUTOWIKI - // setup_autowiki() - #endif - /world/proc/HandleTestRun() //trigger things to run the whole process Master.sleep_offline_after_initializations = FALSE @@ -657,3 +653,4 @@ GLOBAL_LIST(topic_status_cache) if (dll) LIBCALL(dll, "auxtools_init")() enable_debugging() + world_debug_enabler.debug_loop()