1
0
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:
ArseniyShestakov 2015-03-13 15:05:12 +03:00
parent 4f3eb919e5
commit f8747a1f16

View File

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