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): no queued count badge on classic build buttons
Olcay Seygan61aef69057a4
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cppindex 5d7e8743e..e25d1101f 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp@@ -905,7 +905,8 @@ void ControlBar::updateContextCommand( void )if( p->getProductionType() == PRODUCTION_UNIT &&p->getProductionObject() == command->getThingTemplate() )queued++;- GadgetButtonSetCount( win, queued );+ // Classic counts its queue on the queue buttons over the portrait, not on the button+ GadgetButtonSetCount( win, TheGlobalData->isClassicUI() ? 0 : queued );if( queued > 0 && obj->isLocallyControlled() )win->winSetStatus( WIN_STATUS_CANCEL_WHEN_DISABLED );