mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Available maps are determined by code (#30017)
* Available maps are determined by code * Fixed github actions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user