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-861f7616d084master
parent
9445f60753
commit
86302cf060
|
@ -1466,7 +1466,8 @@ static void addColourChooser(UDWORD player)
|
||||||
|
|
||||||
for (i=0;i<game.maxPlayers;i++)
|
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);
|
widgSetButtonState(psWScreen, MULTIOP_PLAYCHOOSER+NetPlay.players[i].position, WBUT_DISABLE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue