diff --git a/src/multiint.c b/src/multiint.c index 0de968947..1ad0f6fc2 100644 --- a/src/multiint.c +++ b/src/multiint.c @@ -153,7 +153,7 @@ extern void NETGameLocked(bool flag); // in netplay.c BOOL bHosted = false; //we have set up a game char sPlayer[128]; // player name (to be used) -static BOOL bColourChooserUp= false; +static int colourChooserUp = -1; static int teamChooserUp = -1; static BOOL SettingsUp = false; static UBYTE InitialProto = 0; @@ -1493,12 +1493,15 @@ static void addColourChooser(UDWORD player) // delete that players box, widgDelete(psWScreen,MULTIOP_PLAYER_START+player); - // detele team chooser botton + // delete team chooser button widgDelete(psWScreen,MULTIOP_TEAMS_START+player); - // detele 'ready' button + // delete 'ready' button widgDelete(psWScreen,MULTIOP_READY_FORM_ID+player); + // remove colour chooser, if it's already up + closeColourChooser(); + // add form. addBlueForm(MULTIOP_PLAYERS,MULTIOP_COLCHOOSER_FORM,"", 7, @@ -1532,7 +1535,7 @@ static void addColourChooser(UDWORD player) "Player number", IMAGE_WEE_GUY, IMAGE_WEE_GUY, 10 + i); } - if (NetPlay.isHost) + if (!NetPlay.isHost) { for (i=0;i