Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the flags so the colors are in the correct position, as the playe…
…r's color.
  • Loading branch information
buginator committed Jun 11, 2011
1 parent 5fbe805 commit 5fa3d50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/multiint.cpp
Expand Up @@ -1767,14 +1767,14 @@ static void addColourChooser(UDWORD player)
space = std::min(space, 5*spaceDiv);
for (i = 0; i < MAX_PLAYERS_IN_GUI; i++)
{
addMultiBut(psWScreen,MULTIOP_COLCHOOSER_FORM, MULTIOP_COLCHOOSER+i,
addMultiBut(psWScreen, MULTIOP_COLCHOOSER_FORM, MULTIOP_COLCHOOSER + getPlayerColour(i),
i*(flagW*spaceDiv + space)/spaceDiv + 7, 4, // x, y
flagW, flagH, // w, h
getPlayerColourName(i), IMAGE_PLAYERN, IMAGE_PLAYERN_HI, IMAGE_PLAYERN_HI, i);
getPlayerColourName(i), IMAGE_PLAYERN, IMAGE_PLAYERN_HI, IMAGE_PLAYERN_HI, getPlayerColour(i));

if( !safeToUseColour(selectedPlayer,i))
{
widgSetButtonState(psWScreen,MULTIOP_COLCHOOSER+i ,WBUT_DISABLE);
widgSetButtonState(psWScreen, MULTIOP_COLCHOOSER + getPlayerColour(i), WBUT_DISABLE);
}
}

Expand Down

0 comments on commit 5fa3d50

Please sign in to comment.