... and fix it for other changelevel functions too

This commit is contained in:
edshot99 2024-05-17 03:21:42 -05:00
parent c020b9437d
commit 4fd0013c4d
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ function ulx.map( calling_ply, map, gamemode )
if gamemode and gamemode ~= "" then
game.ConsoleCommand( "gamemode " .. gamemode .. "\n" )
end
game.ConsoleCommand( "changelevel " .. map .. "\n" )
game.ConsoleCommand( "changelevel \"" .. map .. "\"\n" )
end
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 }

View File

@ -167,7 +167,7 @@ local function voteMapDone2( t, changeTo, ply )
end
if shouldChange then
ULib.consoleCommand( "changelevel " .. changeTo .. "\n" )
ULib.consoleCommand( "changelevel \"" .. changeTo .. "\"\n" )
end
end