Correctly handle when to enable/disable player's position choices.

We only really care if another human is there or not.  We don't care about AIs.
fixes ticket:1137

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8605 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-12-05 06:25:23 +00:00 committed by Git SVN Gateway
parent 9445f60753
commit 86302cf060
1 changed files with 2 additions and 1 deletions

View File

@ -1466,7 +1466,8 @@ static void addColourChooser(UDWORD player)
for (i=0;i<game.maxPlayers;i++)
{
if (isHumanPlayer(i) && i!=selectedPlayer )
// we only want to disable button when another human is there. We don't care about AIs.
if (isHumanPlayer(i))
{
widgSetButtonState(psWScreen, MULTIOP_PLAYCHOOSER+NetPlay.players[i].position, WBUT_DISABLE);
}