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): LAN and online rooms stop refitting a map once closed
Olcay Seygane5cd5ef7a67e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 71802cad7..b09305154 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -182,6 +182,7 @@ found and fixed, EA's own, not port damage.**- In a LAN or online room the other players do not download anything: the map's name carries its recipe, and their own game builds the same map from it and checks it against yours. A room that records stats keeps to the official list.- Random maps used to be reachable only by a hidden command-line switch that added five rows to the skirmish list.- Leaving the skirmish room for the main menu no longer crashes the game. In 3.4.0 it did every time, whatever map was picked: the room went on refitting its random map to the seats for a moment after Back had already thrown the seats away.+- A LAN match on a random map no longer crashes the host as it starts. The room waits behind the battle with its window taken down, and it went on refitting its map to the seats there: one host's game rebuilt a two-player map for three on the match's first frame and died. The online room had the same habit while it slid shut.- Back from a match on a random map, the skirmish room still has that map picked. It used to show some other map, usually the first of your own downloaded ones, because the room wrote the map's name down in a way it could not read back. The room also picks up a random map remembered from your last session, building it again from its name.## An army screen in every lobbydiff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cppindex 23df3d1ee..f3314a7dc 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp@@ -1370,7 +1370,9 @@ void LanGameOptionsMenuUpdate( WindowLayout * layout, void *userData){if(LANisShuttingDown && TheShell->isAnimFinished() && TheTransitionHandler->isFinished())shutdownComplete(layout);- else if (!LANisShuttingDown && TheLAN->AmIHost() && FitRandomMapToRoom(TheLAN->GetMyGame()))+ // hideShell leaves this layout on the stack with its gadgets gone, and the shell goes on updating it+ // under the match it launched until showShell runs its init again. There is no room to fit a map to.+ else if (parentLanGameOptions && !LANisShuttingDown && TheLAN->AmIHost() && FitRandomMapToRoom(TheLAN->GetMyGame()))PostToLanGameOptions(SEND_GAME_OPTS);//TheLAN->update(); // this is handled in the lobby}// void LanGameOptionsMenuUpdate( WindowLayout * layout, void *userData)diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cppindex 896b7e34f..2f795c505 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp@@ -2066,7 +2066,8 @@ void WOLGameSetupMenuUpdate( WindowLayout * layout, void *userData)}GameSpyStagingRoom *room = TheGameSpyInfo->getCurrentStagingRoom();- if (room && !room->isGameInProgress())+ // the shutdown clears the gadgets before its exit animation plays, and this runs through that animation+ if (parentWOLGameSetup && room && !room->isGameInProgress())fitRandomMapToRoom(room);if (TheShell->isAnimFinished() && !buttonPushed && TheGameSpyPeerMessageQueue)