mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
sanitize sv_player_slots
This commit is contained in:
parent
afb5029c61
commit
8184bc1119
|
@ -1370,6 +1370,8 @@ void CGameContext::ConchainSettingUpdate(IConsole::IResult *pResult, void *pUser
|
|||
if(pResult->NumArguments())
|
||||
{
|
||||
CGameContext *pSelf = (CGameContext *)pUserData;
|
||||
if(pSelf->Server()->MaxClients() < g_Config.m_SvPlayerSlots)
|
||||
g_Config.m_SvPlayerSlots = pSelf->Server()->MaxClients();
|
||||
pSelf->SendSettings(-1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue