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 full picture when you take over a base
Olcay Seyganb53def8ab207
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 40d23f531..ba0bc7a0a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -227,6 +227,7 @@ found and fixed — EA's own, not port damage.**- Zoom toward the cursor works; the spot under your pointer stays there.- The camera turns in whole 45-degree steps, instantly, while you hold the key.- Edge scrolling works windowed, and scroll speed no longer follows your frame rate.+- Taking over another base no longer squeezes the picture into the top four fifths of the screen.- A skirmish opens zoomed all the way out (`StartAtMaxZoom = No` restores the old opening).- Hold Ctrl and roll the wheel to turn a building before placing it.- Buildings snap to the pathfinder's own grid (`GridBuildPlacement = No` for the old way).diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cppindex 3c2275ff0..9668e38e4 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp@@ -3678,7 +3678,14 @@ void ControlBar::switchControlBarStage( ControlBarStages stage )void ControlBar::setDefaultControlBarConfig( void ){m_currentControlBarStage = CONTROL_BAR_STAGE_DEFAULT;- TheTacticalView->setHeight((Int)(TheDisplay->getHeight() * 0.80f));+ //+ // Full height, like the low stage and like ShowControlBar: the bar is drawn over the world and+ // does not crop it. Retail cropped the view to 80% here, and since the stage is reset every+ // time the HUD scheme is rebuilt - taking over another player, a player dying into the observer+ // bar - that shrank the viewport in the middle of a match and slid the picture, for good:+ // nothing put the height back once ShowControlBar had run at the start of the game.+ //+ TheTacticalView->setHeight((Int)(TheDisplay->getHeight()));m_contextParent[ CP_MASTER ]->winSetPosition(m_defaultControlBarPosition.x, m_defaultControlBarPosition.y);m_contextParent[ CP_MASTER ]->winHide(FALSE);repopulateBuildTooltipLayout();