Available maps are determined by code (#30017)

* Available maps are determined by code

* Fixed github actions
This commit is contained in:
DamianX
2021-07-19 21:48:43 +02:00
committed by GitHub
parent 4fea60e1cb
commit 667f55d147
6 changed files with 160 additions and 119 deletions

View File

@@ -38,7 +38,6 @@ var/global/datum/controller/vote/vote = new()
var/list/current_votes = list()
var/list/discarded_choices = list()
var/list/ismapvote
var/list/allmaps
var/chosen_map
name = "datum"
var/datum/html_interface/nanotrasen/vote/interface
@@ -233,7 +232,7 @@ var/global/datum/controller/vote/vote = new()
init_shift_change(null, 1)
if("map")
if(.)
chosen_map = ismapvote[.]
chosen_map = "maps/voting/" + ismapvote[.] + "/vgstation13.dmb"
watchdog.chosen_map = .
log_game("Players voted and chose.... [watchdog.chosen_map]!")
//testing("Vote picked [chosen_map]")
@@ -316,7 +315,7 @@ var/global/datum/controller/vote/vote = new()
choices.Add(option)
if("map")
question = "What should the next map be?"
var/list/maps = get_maps()
var/list/maps = get_votable_maps()
for(var/key in maps)
choices.Add(key)
if(!choices.len)