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
merge: mouse interactions
Olcay Seyganb32d3deb3d46
diff --cc GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cppindex ad9dc39ee,55483ee80..90da6f349--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp@@@ -2446,21 -2398,11 +2428,21 @@@ void InGameUI::reset( voidm_shiftAttackQueue.clear();m_shiftAttackQueueUnits.clear();m_shiftAttackQueueRunning = FALSE;+ m_shiftAttackQueueEngagedFrame = 0;+ m_shiftAttackQueueWaitingForRearm = FALSE;+ m_shiftAttackQueueWaitingForSelection = FALSE;m_clientQuiet = false;-++ // TheSuperHackers @bugfix A key or button still held when the game ended left its camera+ // interaction latched on, and the shell then scrolled or spun on its own.+ setScrolling(false);+ setSelecting(false);+ setCameraRotateLeft(false);+ setCameraRotateRight(false);+ setCameraZoomIn(false);+ setCameraZoomOut(false);+ setCameraTrackingDrawable(false);+m_windowLayouts.clear();m_tooltipsDisabledUntil = 0;@@@ -4609,10 -4942,15 +4982,16 @@@ void InGameUI::deselectDrawable( Drawab//-------------------------------------------------------------------------------------------------/** Clear all drawables' "select" status *///--------------------------------------------------------------------------------------------------void InGameUI::deselectAllDrawables( Bool postMsg )+void InGameUI::deselectAllDrawables( void ){+ if( m_shiftAttackQueueRunning && !m_selectedDrawables.empty() )+ {+ DEBUG_LOG(("shift attack queue: frame %d, the whole selection is being cleared at once\n",+ TheGameLogic->getFrame()));+ }+const DrawableList *selected = TheInGameUI->getAllSelectedDrawables();+ const Bool hadSelectedDrawables = !selected->empty();// loop through all the selected drawablesfor ( DrawableListCIt it = selected->begin(); it != selected->end(); )diff --cc GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cppindex d1c3d491b,31ea8fa76..b54cc1067--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cpp@@@ -106,21 -105,12 +106,13 @@@ GameMessageDisposition HintSpyTranslatobreak;//------------------------------------------------------------------------------ // An AREA_SELECTION_HINT is always followed by an AREA_SELECTION, so+ // A BEGIN_AREA_SELECTION_HINT is always followed by an END_AREA_SELECTION_HINT, so// watch for it to stop hinting.- case GameMessage::MSG_AREA_SELECTION:+ case GameMessage::MSG_END_AREA_SELECTION_HINT:TheInGameUI->endAreaSelectHint( msg );+ disp = DESTROY_MESSAGE;break;- //------------------------------------------------------------------------------ case GameMessage::MSG_DO_MOVETO:- case GameMessage::MSG_DO_ATTACKMOVETO:- case GameMessage::MSG_DO_FORCEMOVETO:- case GameMessage::MSG_ADD_WAYPOINT:- TheInGameUI->createMoveHint( msg );- break;-//-----------------------------------------------------------------------------case GameMessage::MSG_DO_ATTACK_OBJECT:TheInGameUI->createAttackHint( msg );