Standard Lua formating

This commit is contained in:
WantedDV 2023-04-12 19:51:35 -02:30
parent b32168dce6
commit 07586dfeee
2 changed files with 8 additions and 8 deletions

View File

@ -11,17 +11,17 @@ CoD.IsTeamChangeAllowed = function()
end
end
local GetModeInfo = function()
local getModeInfo = function()
local id = Engine.GetLobbyUIScreen()
return LobbyData:UITargetFromId(id)
end
local GetMaxClients = function()
local ModeInfo = GetModeInfo()
return ModeInfo.maxClients
local getMaxClients = function()
local modeInfo = getModeInfo()
return modeInfo.maxClients
end
-- Set com_maxclients InGame so players can join via direct connect (default from lobbydata)
Engine.SetDvar( "com_maxclients", GetMaxClients() )
Engine.SetDvar("com_maxclients", getMaxClients())
require("DataSources_StartMenuGameOptions")
require("datasources_start_menu_game_options")