Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Avoid loading double extools (tgstation#50835)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac authored May 3, 2020
1 parent 0f419c4 commit b11b3ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ GLOBAL_VAR(restart_counter)
*
*/
/world/New()
if(fexists("byond-extools.dll"))
call("byond-extools.dll", "maptick_initialize")()
var/extools = world.GetConfig("env", "EXTOOLS_DLL") || "./byond-extools.dll"
if (fexists(extools))
call(extools, "maptick_initialize")()
enable_debugger()

//Early profile for auto-profiler - will be stopped on profiler init if necessary.
Expand Down

0 comments on commit b11b3ae

Please sign in to comment.