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(gameengine): keep the build cursor over buildings while placing
Olcay Seygan7b4568e0c8a6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fa6c13656..101bf86fe 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -186,6 +186,7 @@ found and fixed — EA's own, not port damage.**- Unbuildable ground is a soft red wash, crossed out square by square.- Running out of money no longer strands the ghost on the map.- A building you point at blocked ground slides to the nearest spot it fits, and lands there.+- The pointer keeps its build cursor while you place, even passing over your own buildings.- GLA defences get a range ring while you site them.- A click clears a half-typed building shortcut.- The two-key building shortcut survives the command bar's redraw now.diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cppindex d27f6e964..e98bdc9e5 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp@@ -568,6 +568,16 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessaconst CommandButton *command = TheInGameUI->getGUICommand();Bool ignoreCommand = FALSE;++ //+ // A structure riding the cursor owns the pointer - InGameUI::createCommandHint's+ // MOUSEMODE_BUILD_PLACE case keeps it on the build cursor. Moving over a building+ // used to turn it into the selection hand here, on top of that, which reads as "this+ // click selects" when the click still places.+ //+ if( TheInGameUI->getPendingPlaceType() )+ ignoreCommand = TRUE;+if( command ){if( command->getCommandType() == GUI_COMMAND_ATTACK_MOVE ||