From 88a424cd7c8c1ab69addda14df17aa3394bc21a9 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 1 Jun 2016 16:01:28 -0400 Subject: Allowed map vote to choose from maps on the server, but not from mounted content --- gamemode/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gamemode/init.lua') diff --git a/gamemode/init.lua b/gamemode/init.lua index 1d1c3c0..400e4a1 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -1534,7 +1534,9 @@ function GM:EndGame( winner ) timer.Simple( GetConVar( "sv_redead_post_game_time" ):GetInt(), function() if(MapVote && MapVote.Start) then - MapVote.Start(10,false,5,"") + local maps = {} + files,dirs = file.Find("maps/*.bsp","MOD") + MapVote.Start(20,false,5,files) else print("Mapvote:") print(MapVote) -- cgit v1.2.3-70-g09d2