[#21]join running game:change value in for statement

This may  help with #21
This commit is contained in:
andy5995
2018-02-05 16:49:11 -06:00
parent a8255e5c97
commit f703e6193e

View File

@@ -8675,15 +8675,18 @@ namespace Glest
{
if (clientInterface->getJoinGameInProgress () == false)
{
if (i + 1 <= mapInfo.hardMaxPlayers)
if (i <= mapInfo.hardMaxPlayers)
{
listBoxFactions[slot].setEditable (true);
listBoxTeams[slot].setEditable (true);
}
else
{
listBoxFactions[slot].setEditable (false);
listBoxTeams[slot].setEditable (false);
// looks more must be done to allow people to take an observer
// slot after the game has started. Extra network slots close
// when the game starts.
listBoxFactions[slot].setEditable (checkBoxAllowObservers.getValue ());
listBoxTeams[slot].setEditable (checkBoxAllowObservers.getValue ());
}
}
}