Only apply maxconnections to bots in netgame contexts

This commit is contained in:
toaster 2024-05-05 21:28:59 +01:00
parent 873d16e6c0
commit 1ed7591c40

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));