forked from TeamUlysses/ulx
... and fix it for other changelevel functions too
This commit is contained in:
parent
c020b9437d
commit
4fd0013c4d
@ -53,7 +53,7 @@ function ulx.map( calling_ply, map, gamemode )
|
|||||||
if gamemode and gamemode ~= "" then
|
if gamemode and gamemode ~= "" then
|
||||||
game.ConsoleCommand( "gamemode " .. gamemode .. "\n" )
|
game.ConsoleCommand( "gamemode " .. gamemode .. "\n" )
|
||||||
end
|
end
|
||||||
game.ConsoleCommand( "changelevel " .. map .. "\n" )
|
game.ConsoleCommand( "changelevel \"" .. map .. "\"\n" )
|
||||||
end
|
end
|
||||||
local map = ulx.command( CATEGORY_NAME, "ulx map", ulx.map, "!map" )
|
local map = ulx.command( CATEGORY_NAME, "ulx map", ulx.map, "!map" )
|
||||||
map:addParam{ type=ULib.cmds.StringArg, completes=ulx.maps, hint="map", error="invalid map \"%s\" specified", ULib.cmds.restrictToCompletes }
|
map:addParam{ type=ULib.cmds.StringArg, completes=ulx.maps, hint="map", error="invalid map \"%s\" specified", ULib.cmds.restrictToCompletes }
|
||||||
|
@ -167,7 +167,7 @@ local function voteMapDone2( t, changeTo, ply )
|
|||||||
end
|
end
|
||||||
|
|
||||||
if shouldChange then
|
if shouldChange then
|
||||||
ULib.consoleCommand( "changelevel " .. changeTo .. "\n" )
|
ULib.consoleCommand( "changelevel \"" .. changeTo .. "\"\n" )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user