Maplist is loaded regardless of maprotation config setting (#31172)
* Uncomments map rotation in default config * Maplist is loaded regardless of maprotation config setting Also logs loading of the map file
This commit is contained in:
committed by
CitadelStationBot
parent
1057b4b636
commit
4d610b95bd
@@ -24,8 +24,7 @@ GLOBAL_PROTECT(config_dir)
|
||||
LoadModes()
|
||||
for(var/I in config_files)
|
||||
LoadEntries(I)
|
||||
if(Get(/datum/config_entry/flag/maprotation))
|
||||
loadmaplist(CONFIG_MAPS_FILE)
|
||||
loadmaplist(CONFIG_MAPS_FILE)
|
||||
|
||||
/datum/controller/configuration/Destroy()
|
||||
entries_by_type.Cut()
|
||||
@@ -170,6 +169,7 @@ GLOBAL_PROTECT(config_dir)
|
||||
|
||||
/datum/controller/configuration/proc/loadmaplist(filename)
|
||||
filename = "[GLOB.config_dir][filename]"
|
||||
log_config("Loading config file [filename]...")
|
||||
var/list/Lines = world.file2list(filename)
|
||||
|
||||
var/datum/map_config/currentmap = null
|
||||
|
||||
+1
-1
@@ -286,7 +286,7 @@ ANNOUNCE_ADMIN_LOGOUT
|
||||
|
||||
## Map rotation
|
||||
## You should edit maps.txt to match your configuration when you enable this.
|
||||
#MAPROTATION
|
||||
MAPROTATION
|
||||
|
||||
## Map voting
|
||||
## Allows players to vote for their preffered map
|
||||
|
||||
Reference in New Issue
Block a user