Skip to content

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.

fix(gameclient): end the alpha aurora's endless haze with its bomb

Olcay Seygan0ed333036a74
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/FXList.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/FXList.cpp
index f6afa167c..779ec3f38 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/FXList.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/FXList.cpp
@@ -765,6 +765,14 @@ protected:
sys->rotateLocalTransformZ(mtx->Get_Z_Rotation());
}
+ // an endless system meant to ride an object, played at a bare position, has nothing
+ // to end it and would stay all match; EA ends it with its object, so drop it here
+ if (m_attachToObject && thingToAttachTo == INVALID_ID && sys->isSystemForever())
+ {
+ sys->destroy();
+ continue;
+ }
+
// by ID: an object the tick destroyed after asking for this is gone now, and the
// system lets go of it on its first update as it did of a dying one
if (m_attachToObject && thingToAttachTo != INVALID_ID)