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): demo combat cycle keeps its terrorist under pro rules
Olcay Seygan4c6b384d6b5e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2b7b2d90c..d1f666b60 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1055,6 +1055,7 @@ A third pass went through the generals' powers, promotions and unit abilities.- The Nuclear Missile silo still goes up, since it is where China buys Nuclear Tanks and Uranium Shells. The missile inside it never launches, it has no fire button, and nobody's screen counts down to it.- No Aurora Bomber, the Superweapon General's Alpha Aurora included, and no Tactical Nuke upgrade for the Nuke General's MiGs.- No demo bike. A terrorist cannot climb onto a Combat Cycle any more; a rebel, a worker, a hijacker or Jarmen Kell still can.+- The Demolition General's Combat Cycle still leaves the Arms Dealer with its own Terrorist riding it. In 2.8.0 the rule above turned that Terrorist away as well, and the bike rolled out with a worker in the saddle and nothing to fire.- A Microwave Tank cannot freeze a building that is still going up. There is nothing for it to fire at until the scaffold is finished, so parking one beside a half-built base no longer keeps it half built.- No foundation goes down closer to an enemy building than 300, a margin past the 225 a Patriot battery or a Stinger Site reaches on the ground. That ends walling somebody's base in with scaffolds nobody means to finish, and it ends building a tower in their yard too. The placement ghost says why it is red.- The computer opponent is held to the same list, because it asks the same question your build buttons ask before it spends a dollar.diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/RiderChangeContain.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/RiderChangeContain.cppindex a64f73e5b..433ed3067 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/RiderChangeContain.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/RiderChangeContain.cpp@@ -180,7 +180,9 @@ Bool RiderChangeContain::isValidContainerFor(const Object* rider, Bool checkCapaif( thing->isEquivalentTo( rider->getTemplate() ) ){//We found a valid rider, so return success - unless Pro Rules refuse this one the saddle.- return !( TheGameLogic->isProRules() && ProRulesBanRider( thing->getName() ) );+ //The bike's own initial payload is created before m_payloadCreated is set, so the+ //rider the factory builds the bike with is never refused; only a later boarding is.+ return !( TheGameLogic->isProRules() && m_payloadCreated && ProRulesBanRider( thing->getName() ) );}}}diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/TransportContain.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/TransportContain.cppindex ee9fd9081..72e5b98a0 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/TransportContain.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/TransportContain.cpp@@ -466,6 +466,7 @@ void TransportContain::createPayload()else{DEBUG_CRASH( ( "DeliverPayload: PutInContainer %s is full, or not valid for the payload %s!", object->getName().str(), self->m_initialPayload.name.str() ) );+ TheGameLogic->destroyObject( payload );}}contain->enableLoadSounds( TRUE );