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): superweapon countdowns in their owner's colour
Olcay Seygan772b75c21697
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f93409e76..cffcad38b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -31,7 +31,7 @@ found and fixed — EA's own, not port damage.**## One interface-- The choice between a Classic and a Reforged interface is gone. There is one, laid out the way Zero Hour shipped, and the orders Reforged added now live on the keys you already know: A attack-moves, holding Ctrl fires on whatever is under the cursor as it did in 2003, a guard order can cover a patch of ground instead of one spot, and orders queue up one after another. Everything your base is building stands on the screen as a line of text each, the six closest to done first and "+N more" for the rest. Superweapon countdowns are listed the same way, up to eighteen. Both lists are in bold white, readable on any ground. The promotion screen no longer darkens the battlefield behind it. Whether the right button gives orders, or the left as in 1.04, is a setting in the launcher.+- The choice between a Classic and a Reforged interface is gone. There is one, laid out the way Zero Hour shipped, and the orders Reforged added now live on the keys you already know: A attack-moves, holding Ctrl fires on whatever is under the cursor as it did in 2003, a guard order can cover a patch of ground instead of one spot, and orders queue up one after another. Everything your base is building stands on the screen as a line of text each, the six closest to done first and "+N more" for the rest. Superweapon countdowns are listed the same way, up to eighteen. Both lists are in bold type, the build list in white and each countdown in its owner's colour. The promotion screen no longer darkens the battlefield behind it. Whether the right button gives orders, or the left as in 1.04, is a setting in the launcher.- Every key is yours to move. The launcher's Hotkeys page draws the command bar of every building and unit each general can field, cameos and letters as the game shows them, and a click and a keypress gives any button a new letter or none. Two buttons on one bar that would share a letter are marked before you play. The keyboard commands are there too, from bookmarks and team keys to the camera, along with the ones Zero Hour never bound: select every fighting unit, vehicle or aircraft, every barracks, war factory or airfield, the next idle worker or unit, pause, the general's promotions, the three signals to your allies and the general's powers. Your keys are yours alone; the other players in a match keep theirs, and a match never refuses you for them.## The command bar moves to the middlediff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cppindex 24ae4a77a..5103d89eb 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp@@ -2876,9 +2876,8 @@ void InGameUI::drawClassicSuperweapon( SuperweaponInfo *info, const AsciiStringinfo->setText( name, time );}- // white, flashing to EA's flash colour once ready- const Color white = GameMakeColor( 255, 255, 255, 255 );- Color color = white;+ // 0 draws in the owner's colour, flashing to EA's flash colour once ready+ Color color = 0;if( isReady && m_superweaponFlashDuration != 0.0f ){if( TheGameLogic->getFrame() >= m_superweaponLastFlashFrame + (Int)m_superweaponFlashDuration )@@ -2886,7 +2885,7 @@ void InGameUI::drawClassicSuperweapon( SuperweaponInfo *info, const AsciiStringm_superweaponUsedFlashColor = !m_superweaponUsedFlashColor;m_superweaponLastFlashFrame = TheGameLogic->getFrame();}- color = m_superweaponUsedFlashColor ? white : m_superweaponFlashColor;+ color = m_superweaponUsedFlashColor ? 0 : m_superweaponFlashColor;}const Color drop = GameMakeColor( 0, 0, 0, 255 );info->drawName( x, *y, color, drop );