Config dir again except this time it works (#34606)

* Revert "Revert "Fix config_dir usage (#34469)""

* Make config exist before world/New but not load it until then
This commit is contained in:
Jordan Brown
2018-01-21 19:32:12 +01:00
committed by AnturK
parent b4a8b8b8b1
commit 015258d01c
14 changed files with 33 additions and 31 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// How much "space" we give the edge of the map
GLOBAL_LIST_INIT(potentialRandomZlevels, generateMapList(filename = "config/awaymissionconfig.txt"))
GLOBAL_LIST_INIT(potentialRandomZlevels, generateMapList(filename = "[global.config.directory]/awaymissionconfig.txt"))
/proc/createRandomZlevel()
if(GLOB.awaydestinations.len) //crude, but it saves another var!