forked from TeamUlysses/ulx
fix map not changing when the map file name uses spaces
This commit is contained in:
parent
76110bdbaa
commit
c020b9437d
@ -158,7 +158,7 @@ function ulx.votemap( calling_ply, map )
|
||||
if vetotime < 1 then
|
||||
ULib.tsay( _, "Vote for map " .. ulx.votemaps[ mapid ] .. " successful! Changing levels now.", true ) -- TODO, color?
|
||||
ulx.logString( "Votemap for " .. ulx.votemaps[ mapid ] .. " won." )
|
||||
game.ConsoleCommand( "changelevel " .. ulx.votemaps[ mapid ] .. "\n" )
|
||||
game.ConsoleCommand( "changelevel \"" .. ulx.votemaps[ mapid ] .. "\"\n" )
|
||||
else
|
||||
ULib.tsay( _, "Vote for map " .. ulx.votemaps[ mapid ] .. " successful! Now pending admin approval. (" .. vetotime .. " seconds)", true ) -- TODO, color?
|
||||
for _, player in ipairs( admins ) do
|
||||
@ -173,7 +173,7 @@ function ulx.votemap( calling_ply, map )
|
||||
ulx.csay(calling_ply, "====== MAP CHANGE IN: " .. vetotime2 .. " SECOND(S) ======")
|
||||
vetotime2 = vetotime2 - 1
|
||||
end )
|
||||
timer.Create( "ULXVotemap", vetotime, 1, function() game.ConsoleCommand( "changelevel " .. ulx.votemaps[ mapid ] .. "\n" ) end )
|
||||
timer.Create( "ULXVotemap", vetotime, 1, function() game.ConsoleCommand( "changelevel \"" .. ulx.votemaps[ mapid ] .. "\"\n" ) end )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user