Skip to content

Commit

Permalink
buh
Browse files Browse the repository at this point in the history
  • Loading branch information
LetterN committed Oct 22, 2024
1 parent 69f3e80 commit f83f423
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions code/__compile_options.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
13 changes: 13 additions & 0 deletions code/__global_init.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 1 addition & 4 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -657,3 +653,4 @@ GLOBAL_LIST(topic_status_cache)
if (dll)
LIBCALL(dll, "auxtools_init")()
enable_debugging()
world_debug_enabler.debug_loop()

0 comments on commit f83f423

Please sign in to comment.