diff --git a/aurorastation.dme b/aurorastation.dme index 5037f9509da..d52dae6fe2d 100644 --- a/aurorastation.dme +++ b/aurorastation.dme @@ -11,6 +11,7 @@ // END_PREFERENCES // BEGIN_INCLUDE #include "code\__linters.dm" +#include "code\_compile_options.dm" #include "code\global.dm" #include "code\hub.dm" #include "code\names.dm" @@ -20,7 +21,6 @@ #include "code\__defines\_click.dm" #include "code\__defines\_common.dm" #include "code\__defines\_compile_helpers.dm" -#include "code\__defines\_compile_options.dm" #include "code\__defines\_layers.dm" #include "code\__defines\_macros.dm" #include "code\__defines\_unit_tests.dm" diff --git a/code/__defines/_compile_options.dm b/code/_compile_options.dm similarity index 86% rename from code/__defines/_compile_options.dm rename to code/_compile_options.dm index 5cd8cd5bceb..c08babb650b 100644 --- a/code/__defines/_compile_options.dm +++ b/code/_compile_options.dm @@ -1,3 +1,9 @@ +/* + This file must be one of the first files included right after the linters to lint it + This is because the compile options must be defined in every other file, including /world that are included +*/ + + #define BACKGROUND_ENABLED 0 // The default value for all uses of set background. Set background can cause gradual lag and is recommended you only turn this on if necessary. // 1 will enable set background. 0 will disable set background. diff --git a/code/world.dm b/code/world.dm index d85a0bd55a4..5d5caae79dd 100644 --- a/code/world.dm +++ b/code/world.dm @@ -57,6 +57,9 @@ var/global/datum/global_init/init = new () maxx = WORLD_MIN_SIZE // So that we don't get map-window-popin at boot. DMMS will expand this. maxy = WORLD_MIN_SIZE fps = 30 +#ifdef FIND_REF_NO_CHECK_TICK + loop_checks = FALSE +#endif #define RECOMMENDED_VERSION 510 /world/New() diff --git a/html/changelogs/FluffyGhost-findref_nochecktick_loopchecks_disable.yml b/html/changelogs/FluffyGhost-findref_nochecktick_loopchecks_disable.yml new file mode 100644 index 00000000000..ebac0574241 --- /dev/null +++ b/html/changelogs/FluffyGhost-findref_nochecktick_loopchecks_disable.yml @@ -0,0 +1,42 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +# balance +# admin +# backend +# security +# refactor +################################# + +# Your name. +author: FluffyGhost + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - backend: "Added the no loopcheck setting under /world when the compile option FIND_REF_NO_CHECK_TICK is specified." + - bugfix: "Moved the compile options out and included them right below the linters in the DME to ensure they are globally defined."