[MIRROR] Fixes away mission not loading from config [MDB IGNORE] (#9930)

* Fixes away mission not loading from config (#63267)

generateMapList started auto filling the config directory ever since the security PR.

fix: Fixed away missions not loading when the config was enabled.

* Fixes away mission not loading from config

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-12-07 08:31:05 -05:00
committed by GitHub
co-authored by Mothblocks
parent a0943a2b36
commit 5ee69febab
+1 -1
View File
@@ -1,5 +1,5 @@
// How much "space" we give the edge of the map
GLOBAL_LIST_INIT(potentialRandomZlevels, generateMapList(filename = "[global.config.directory]/awaymissionconfig.txt"))
GLOBAL_LIST_INIT(potentialRandomZlevels, generateMapList(filename = "awaymissionconfig.txt"))
GLOBAL_LIST_INIT(potentialConfigRandomZlevels, generateConfigMapList(directory = "[global.config.directory]/away_missions/"))
/proc/createRandomZlevel(config_gateway = FALSE)