Merge branch 'maxconnections-local' into 'master'

Only apply maxconnections to bots in netgame contexts

See merge request KartKrew/Kart!2366
This commit is contained in:
Eidolon 2024-05-05 23:09:33 +00:00
commit c937886c1c

View file

@ -271,7 +271,10 @@ void K_UpdateMatchRaceBots(void)
else
{
difficulty = cv_kartbot.value;
pmax = std::min<UINT8>(pmax, static_cast<UINT8>(cv_maxconnections.value));
if (netgame)
{
pmax = std::min<UINT8>(pmax, static_cast<UINT8>(cv_maxconnections.value));
}
if (cv_maxplayers.value > 0)
{
pmax = std::min<UINT8>(pmax, static_cast<UINT8>(cv_maxplayers.value));