Readds map diversity (#48446)

* Restricts map votes

* votable

* Fix novotes, define, fexist

* And one more define
This commit is contained in:
skoglol
2019-12-30 17:44:10 -05:00
committed by Jordan Brown
parent afda84ccab
commit c2dac45fcf
3 changed files with 67 additions and 36 deletions
+3 -4
View File
@@ -233,7 +233,7 @@ SUBSYSTEM_DEF(mapping)
station_start = world.maxz + 1
INIT_ANNOUNCE("Loading [config.map_name]...")
LoadGroup(FailedZs, "Station", config.map_path, config.map_file, config.traits, ZTRAITS_STATION)
if(SSdbcore.Connect())
var/datum/DBQuery/query_round_map_name = SSdbcore.NewQuery("UPDATE [format_table_name("round")] SET map_name = '[config.map_name]' WHERE id = [GLOB.round_id]")
query_round_map_name.Execute()
@@ -266,7 +266,7 @@ SUBSYSTEM_DEF(mapping)
fdel("_maps/custom/[config.map_file]")
// And as the file is now removed set the next map to default.
next_map_config = load_map_config(default_to_box = TRUE)
GLOBAL_LIST_EMPTY(the_station_areas)
/datum/controller/subsystem/mapping/proc/generate_station_area_list()
@@ -285,9 +285,8 @@ GLOBAL_LIST_EMPTY(the_station_areas)
/datum/controller/subsystem/mapping/proc/maprotate()
if(map_voted)
map_voted = FALSE
return
var/players = GLOB.clients.len
var/list/mapvotes = list()
//count votes