consider max clients configuration for dbg_dummies. closes #1735

This commit is contained in:
oy 2018-11-27 19:24:14 +01:00
parent d86165b63c
commit 499653cd2c

View file

@ -1469,7 +1469,7 @@ void CGameContext::OnInit()
if(g_Config.m_DbgDummies)
{
for(int i = 0; i < g_Config.m_DbgDummies ; i++)
OnClientConnected(MAX_CLIENTS-i-1, true);
OnClientConnected(Server()->MaxClients() -i-1, true);
}
#endif
}