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): no unit lost for a supply drop or strike plane
Olcay Seyganeec43f2bea95
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 320557829..39304666c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1133,6 +1133,7 @@ A third pass went through the generals' powers, promotions and unit abilities.## Twenty-two-year-old bugs, found by testing+- A Supply Drop Zone's cargo plane shot down on its way off the map no longer says "unit lost". Nor does a paradrop plane, an A-10, a B-52 or any other plane a general's power sends over, nor a single member of an angry mob. None of them is a unit you command, and the score never counted them as lost; only the announcer did, so with six drop zones up a "unit lost" could come every twenty seconds for planes that had already delivered.- A match no longer freezes when a unit attacking or hunting with its team changes its orders at the wrong moment. Switching targets could throw away the unit's order logic while it was still being used; the log then filled with "no state 0, in state 10" and the game stopped on one frame until Windows closed it. The order logic now lives until the switch is done.- A Nuke Cannon on guard stays deployed between targets. After every kill it packed up to drive back to the spot it was already standing on, then set up again, so a guarding cannon spent most of a fight folding and unfolding: four Technicals driven into its range one after another cost it four pack-ups and four set-ups, and now cost it none. It still packs up for a move order or a target out of reach. The Sentry Drone guards the same way. Replays recorded before this change play out differently.- Pressing Continue after a campaign mission goes straight to the next one. The main menu used to wake up behind the score screen on the way out, show its buttons and start loading its own background battle, so the menu sat on screen over the next mission's load.diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cppindex b9d7e32b6..eeb14592b 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Object.cpp@@ -5203,7 +5203,9 @@ void Object::onDie( DamageInfo *damageInfo ){TheEva->setShouldPlay(EVA_BuldingLost);}- else if (isKindOf(KINDOF_INFANTRY) || isKindOf(KINDOF_VEHICLE))+ // a plane a general's power or a Supply Drop Zone sends over is IGNORED_IN_GUI: not yours to+ // command, not counted as lost in the score (scoreTheKill), so not announced as lost either+ else if ((isKindOf(KINDOF_INFANTRY) || isKindOf(KINDOF_VEHICLE)) && !isKindOf(KINDOF_IGNORED_IN_GUI)){TheEva->setShouldPlay(EVA_UnitLost);//Create a fake radar event so the user can use the spacebar to quickly jump to this!