mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Multiplayer: don't add newly joined players to CPU-only slots
This commit is contained in:
parent
4f3eb919e5
commit
f8747a1f16
@ -3923,7 +3923,7 @@ void PlayerJoined::apply(CSelectionScreen *selScreen)
|
||||
//put new player in first slot with AI
|
||||
for(auto & elem : SEL->sInfo.playerInfos)
|
||||
{
|
||||
if(!elem.second.playerID)
|
||||
if(!elem.second.playerID && !elem.second.compOnly)
|
||||
{
|
||||
selScreen->setPlayer(elem.second, connectionID);
|
||||
selScreen->opt->entries[elem.second.color]->selectButtons();
|
||||
|
Loading…
Reference in New Issue
Block a user