Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(gameclient): keep the record and map list over the seat rows
Olcay Seygan90dec1c5acc2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 38002fb9a..6f4978782 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -68,6 +68,7 @@ found and fixed — EA's own, not port damage.**- The rooms used to be a 4:3 screen pulled out to fit a wide monitor, so every emblem, start spot and the map itself came out a third wider than tall. They are drawn for 16:9 now and keep their shape on any screen: exact at 1080p, twice that at 4K, and centred between bands on a 4:3 or 16:10 monitor instead of squashed.- The personality list opens eight lines tall with a scroll bar. Opened from a lower seat, its sixteen lines used to run off the bottom of the screen.- The personality column lost its heading. A computer's row shows its level and its personality side by side; a player's row, and an open or closed seat, gives the name box the personality's room as well, so long names fit and no empty gap sits in the middle of the row.+- The record and the map list stay on top of the seats. Once you had picked an army, colour or team, those boxes drew over the open record; and the seat rows, their colour boxes and the personality list showed through the map list. The whole seat table now steps aside while the map list is open, in the skirmish, LAN and online rooms alike, and comes back as it was. The record's Close button closes it; it did nothing before.- The three rooms wear the same frame as the loading and score screens that follow them: the score screen's blue ruler and grid around the edge of the screen, with the panel sitting on its bright line. The LAN and online panels get the blue edge the skirmish one had, under the same blue rule; the seat rows sit on the panel's black in that blue; the colour bar is a little wider. Record and Close are in capitals like every other button, the record's heading is lettered green, and the darker names in the colour list are lifted toward white so they read on black, the way the score screen lifts them.- The menus no longer make you sit through their animations. A click or a key while buttons are still sliding or flashing in puts them where they were going, and the click counts: Solo Play pressed while the main menu is still coming up opens its list straight away, where it used to be ignored. A screen on its way out goes the moment you press anything, so Skirmish then a click reaches the skirmish room in about 100ms instead of half a second, and Back to the main menu in 10ms instead of 380.diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.hindex 2b1c51f1c..b2d70bf30 100644--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.h+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.h@@ -37,6 +37,8 @@ class GameWindow;class GameInfo;class GameSlot;+// Hides the named windows of a room while a popup (a map list) lies over them; showing brings back+// only the ones the last hide took down, so a box hidden for its own reason stays hidden.void ShowUnderlyingGUIElements( Bool show, const char *layoutFilename, const char *parentName,const char **gadgetsToHide, const char **perPlayerGadgetsToHide );diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/EstablishConnectionsWindow.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/EstablishConnectionsWindow.cppindex b6320bff8..22d95d95e 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/EstablishConnectionsWindow.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/EstablishConnectionsWindow.cpp@@ -93,6 +93,11 @@ static const char *perPlayerGadgetsToHide[] ="ComboBoxPlayer","ButtonAccept","GenericPing",+ "StaticTextPlayer",+ "SeatCard",+ "SeatBar",+ "SeatSwatch",+ "SeatTeam",//"ButtonStartPosition",NULL // keep this last};diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanMapSelectMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanMapSelectMenu.cppindex d10814bad..d725807ca 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanMapSelectMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanMapSelectMenu.cpp@@ -73,10 +73,12 @@ static NameKeyType buttonMapStartPositionID[MAX_SLOTS] = { NAMEKEY_INVALID,NAMEKvoid positionStartSpots( AsciiString mapName, GameWindow *buttonMapStartPositions[], GameWindow *mapWindow);static const char *layoutFilename = "LanGameOptionsMenu.wnd";static const char *parentName = "LanGameOptionsMenuParent";+// the map list is see-through over the seat table, so the whole table goes while it is openstatic const char *gadgetsToHide[] ={"MapWindow",//"StaticTextTitle",+ "StaticTextPlayers","StaticTextTeam","StaticTextFaction","StaticTextColor",@@ -89,6 +91,12 @@ static const char *gadgetsToHide[] =};static const char *perPlayerGadgetsToHide[] ={+ "SeatCard",+ "SeatBar",+ "SeatSwatch",+ "SeatTeam",+ "ButtonAccept",+ "ComboBoxPlayer","ComboBoxTeam","ComboBoxColor","ComboBoxPlayerTemplate",@@ -100,7 +108,7 @@ static void showLANGameOptionsUnderlyingGUIElements( Bool show ){ShowUnderlyingGUIElements( show, layoutFilename, parentName, gadgetsToHide, perPlayerGadgetsToHide );if (show)- lanUpdateSlotList(); // showing brought back every seat's personality box, a human's included+ lanUpdateSlotList(); // a seat that changed hands while the list was up gets its own boxesGameWindow *win = TheWindowManager->winGetWindowFromId( NULL, TheNameKeyGenerator->nameToKey("LanGameOptionsMenu.wnd:ButtonBack") );if(win)win->winEnable( show );diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cppindex 91acb754b..70c7407a6 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp@@ -141,6 +141,14 @@ static NameKeyType buttonRecordCloseID = NAMEKEY_INVALID;static void showRecord( Bool show ){+ // A combo box that has dropped its list moves itself to the front of the seat table for good+ // (GadgetComboBox's bringComboToFront), past the veil and the record declared after it, so they+ // come back to the front each time they open.+ if ( show )+ {+ recordVeil->winBringToTop();+ recordPopover->winBringToTop();+ }recordVeil->winHide( !show );recordPopover->winHide( !show );}@@ -1221,6 +1229,9 @@ void InitSkirmishGameGadgets( void )recordPopover = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, NAMEKEY( "SkirmishGameOptionsMenu.wnd:RecordPopover" ) );recordVeil = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, NAMEKEY( "SkirmishGameOptionsMenu.wnd:RecordVeil" ) );recordPopover->winSetInputFunc( recordPopoverInput );+ // Close's press goes to its parent, the record, which hands it up to the room; the layout gives+ // the record no system callback, and the press died there+ recordPopover->winSetSystemFunc( PassMessagesToParentSystem );recordVeil->winSetInputFunc( recordVeilInput );showRecord( FALSE );textEntryMapDisplay =TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, textEntryMapDisplayID );diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishMapSelectMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishMapSelectMenu.cppindex b0cf31d58..579ff8a04 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishMapSelectMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishMapSelectMenu.cpp@@ -46,6 +46,7 @@#include "GameClient/GadgetRadioButton.h"#include "GameClient/GadgetStaticText.h"#include "GameNetwork/LANAPICallbacks.h"+#include "GameNetwork/GUIUtil.h"#include "GameClient/MapUtil.h"#include "Common/RandomMapGenerator.h"@@ -211,120 +212,44 @@ static void mapListTooltipFunc(GameWindow *window,void positionStartSpots( AsciiString mapName, GameWindow *buttonMapStartPositions[], GameWindow *mapWindow);void skirmishPositionStartSpots( void );void skirmishUpdateSlotList( void );-void showSkirmishGameOptionsUnderlyingGUIElements( Bool show )-{- AsciiString parentName( "SkirmishGameOptionsMenu.wnd:SkirmishGameOptionsMenuParent" );- NameKeyType parentID = TheNameKeyGenerator->nameToKey( parentName );- GameWindow *parent = TheWindowManager->winGetWindowFromId( NULL, parentID );- if (!parent)- return;-- // hide some GUI elements of the screen underneath- GameWindow *win;-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:MapWindow") );- win->winHide( !show );-- //win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:StaticTextTitle") );- //win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:StaticTextTeam") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:StaticTextFaction") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:StaticTextColor") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam0") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam1") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam2") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam3") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam4") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam5") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam6") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxTeam7") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor0") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor1") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor2") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor3") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor4") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor5") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor6") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxColor7") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate0") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate1") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate2") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate3") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate4") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate5") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate6") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ComboBoxPlayerTemplate7") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:TextEntryMapDisplay") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ButtonSelectMap") );- win->winHide( !show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ButtonStart") );- win->winHide( !show );+// The map list is see-through over the seat table, so the whole table goes while it is open, the+// seat cards and swatches the stock list never knew included, and the record button with it.+static const char *gadgetsToHide[] =+{+ "MapWindow",+ "StaticTextPlayers",+ "StaticTextTeam",+ "StaticTextFaction",+ "StaticTextColor",+ "TextEntryPlayerName",+ "TextEntryMapDisplay",+ "ButtonSelectMap",+ "ButtonStart",+ "ButtonRecord",+ "StaticTextMapPreview",+ NULL // keep this last+};+static const char *perPlayerGadgetsToHide[] =+{+ "SeatCard",+ "SeatBar",+ "SeatSwatch",+ "SeatTeam",+ "ComboBoxPlayer",+ "ComboBoxAIPersona",+ "ComboBoxTeam",+ "ComboBoxColor",+ "ComboBoxPlayerTemplate",+ NULL // keep this last+};- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:StaticTextMapPreview") );- win->winHide( !show );+void showSkirmishGameOptionsUnderlyingGUIElements( Bool show )+{+ ShowUnderlyingGUIElements( show, "SkirmishGameOptionsMenu.wnd", "SkirmishGameOptionsMenuParent", gadgetsToHide, perPlayerGadgetsToHide );- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ButtonReset") );+ GameWindow *win = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY("SkirmishGameOptionsMenu.wnd:ButtonReset") );win->winEnable( show );-- win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey("SkirmishGameOptionsMenu.wnd:ButtonBack") );+ win = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY("SkirmishGameOptionsMenu.wnd:ButtonBack") );win->winEnable( show );}diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLMapSelectMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLMapSelectMenu.cppindex c7b13d10a..ea478c70a 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLMapSelectMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLMapSelectMenu.cpp@@ -87,10 +87,12 @@ static void NullifyControls(void)static const char *layoutFilename = "GameSpyGameOptionsMenu.wnd";static const char *parentName = "GameSpyGameOptionsMenuParent";+// the map list is see-through over the seat table, so the whole table goes while it is openstatic const char *gadgetsToHide[] ={"MapWindow",//"StaticTextGameName",+ "StaticTextPlayers","StaticTextTeam","StaticTextFaction","StaticTextColor",@@ -103,6 +105,14 @@ static const char *gadgetsToHide[] =};static const char *perPlayerGadgetsToHide[] ={+ "SeatCard",+ "SeatBar",+ "SeatSwatch",+ "SeatTeam",+ "ButtonAccept",+ "GenericPing",+ "StaticTextPlayer",+ "ComboBoxPlayer","ComboBoxTeam","ComboBoxColor","ComboBoxPlayerTemplate",@@ -116,7 +126,7 @@ static void showGameSpyGameOptionsUnderlyingGUIElements( Bool show ){ShowUnderlyingGUIElements( show, layoutFilename, parentName, gadgetsToHide, perPlayerGadgetsToHide );if (show)- WOLDisplaySlotList(); // showing brought back every seat's personality box, a human's included+ WOLDisplaySlotList(); // a seat that changed hands while the list was up gets its own boxesGameWindow *win = TheWindowManager->winGetWindowFromId( NULL, TheNameKeyGenerator->nameToKey("GameSpyGameOptionsMenu.wnd:ButtonBack") );if(win)win->winEnable( show );diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cppindex 4932f5b0f..f448ccac1 100644--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cpp@@ -142,6 +142,20 @@ void EnableAcceptControls(Bool Enabled, GameInfo *myGame, GameWindow *comboPlaye// -----------------------------------------------------------------------------+// What the hiding took down, so showing brings back exactly that: a seat's personality box, ready+// mark or ping that was already hidden for its own reason stays hidden. Kept by name, since the+// windows can be destroyed while the list waits.+static std::vector<NameKeyType> theUnderlyingHidden;++static void hideUnderlying( GameWindow *parent, NameKeyType id )+{+ GameWindow *win = TheWindowManager->winGetWindowFromId( parent, id );+ if (win == NULL || win->winIsHidden())+ return;+ win->winHide( TRUE );+ theUnderlyingHidden.push_back( id );+}+void ShowUnderlyingGUIElements( Bool show, const char *layoutFilename, const char *parentName,const char **gadgetsToHide, const char **perPlayerGadgetsToHide ){@@ -155,41 +169,34 @@ void ShowUnderlyingGUIElements( Bool show, const char *layoutFilename, const chareturn;}- // hide some GUI elements of the screen underneath- GameWindow *win;-- Int player;- const char **text;+ if (show)+ {+ for (size_t i = 0; i < theUnderlyingHidden.size(); ++i)+ {+ GameWindow *win = TheWindowManager->winGetWindowFromId( parent, theUnderlyingHidden[i] );+ if (win)+ win->winHide( FALSE );+ }+ theUnderlyingHidden.clear();+ return;+ }- text = gadgetsToHide;- while (*text)+ // hide some GUI elements of the screen underneath; a window the layout does not have is skipped+ for (const char **text = gadgetsToHide; *text; ++text){AsciiString gadgetName;gadgetName.format("%s:%s", layoutFilename, *text);- win = TheWindowManager->winGetWindowFromId( parent, NAMEKEY(gadgetName) );- //DEBUG_ASSERTCRASH(win, ("Cannot find %s to show/hide it", gadgetName.str()));- if (win)- {- win->winHide( !show );- }- ++text;+ hideUnderlying( parent, NAMEKEY(gadgetName) );}- text = perPlayerGadgetsToHide;- while (*text)+ for (const char **text = perPlayerGadgetsToHide; *text; ++text){- for (player = 0; player < MAX_SLOTS; ++player)+ for (Int player = 0; player < MAX_SLOTS; ++player){AsciiString gadgetName;gadgetName.format("%s:%s%d", layoutFilename, *text, player);- win = TheWindowManager->winGetWindowFromId( parent, NAMEKEY(gadgetName) );- //DEBUG_ASSERTCRASH(win, ("Cannot find %s to show/hide it", gadgetName.str()));- if (win)- {- win->winHide( !show );- }+ hideUnderlying( parent, NAMEKEY(gadgetName) );}- ++text;}}@@ -821,6 +828,7 @@ void ShutdownLobbyTabs(void)// boxes are already wide measures the same.static GameWindow *thePersonaSeatPlayer[MAX_SLOTS];static GameWindow *thePersonaSeatName[MAX_SLOTS];+static GameWindow *thePersonaSeatArmy[MAX_SLOTS];static Int thePersonaSeatNarrow[MAX_SLOTS];static Int thePersonaSeatWide[MAX_SLOTS];@@ -844,6 +852,7 @@ static void measurePersonaSeat(GameWindow *parent, const char *layoutFilename, GthePersonaSeatPlayer[seat] = player;thePersonaSeatName[seat] = findSeatWindow(parent, layoutFilename, "StaticTextPlayer", seat);GameWindow *army = findSeatWindow(parent, layoutFilename, "ComboBoxPlayerTemplate", seat);+ thePersonaSeatArmy[seat] = army;Int playerX, personaX, armyX, y, personaWidth, height;player->winGetScreenPosition(&playerX, &y);@@ -910,7 +919,9 @@ void UpdateAIPersonaComboBoxes(GameInfo *myGame, GameWindow *comboPersona[])const GameSlot *slot = myGame->getConstSlot(i);// a takeover seat has no AI behind it, so nothing for a personality to steerconst Bool computer = slot->isAI() && !slot->isTakeover();- comboPersona[i]->winHide(!computer);+ // the personality goes with the seat's army box, which ShowUnderlyingGUIElements hides while a+ // map list lies over the seats, so a network update then cannot bring it back through the list+ comboPersona[i]->winHide(!computer || thePersonaSeatArmy[i]->winIsHidden());const Int width = computer ? thePersonaSeatNarrow[i] : thePersonaSeatWide[i];setSeatPlayerWidth(thePersonaSeatPlayer[i], width);setSeatPlayerWidth(thePersonaSeatName[i], width);