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): save whether a unit is allowed to chase what it acquired
Olcay Seygan738537cc44dd
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cppindex c9d9ccdef..6883b1267 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp@@ -6846,12 +6846,14 @@ void AIUpdateInterface::crc( Xfer *x )* Version Info:* 1: Initial version* 5: the production rally point and its flag- * 6: the out-of-bounds xfer of m_guardTargetType is fixed */+ * 6: the out-of-bounds xfer of m_guardTargetType is fixed+ * 11: m_isMoving, which the duplicated m_isSafePath used to stand in place of+ * 12: m_allowedToChase */// ------------------------------------------------------------------------------------------------void AIUpdateInterface::xfer( Xfer *xfer ){// version- const XferVersion currentVersion = 11;+ const XferVersion currentVersion = 12;XferVersion version = currentVersion;xfer->xferVersion( &version, currentVersion );@@ -6980,6 +6982,12 @@ void AIUpdateInterface::xfer( Xfer *xfer )Bool safePathWrittenTwice = m_isSafePath;xfer->xferBool(&safePathWrittenTwice);}+ if (version >= 12)+ {+ // A unit saved while closing with something it picked out for itself keeps the permission+ // to close with it; before this it loaded as FALSE and turned back.+ xfer->xferBool(&m_allowedToChase);+ }xfer->xferBool(&m_upgradedLocomotors);xfer->xferBool(&m_canPathThroughUnits);xfer->xferBool(&m_randomlyOffsetMoodCheck);