From 6c3ba88967f3ad770827f0c56e807c9d08deea5f Mon Sep 17 00:00:00 2001 From: MrS-ibra Date: Sat, 3 Jan 2026 15:09:12 +0300 Subject: [PATCH] fix unit debris flying too high 2 --- .../Source/GameLogic/Object/ObjectCreationList.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp index 4c2c186eb6f..358b4ba2b48 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp @@ -1102,13 +1102,6 @@ class GenericObjectCreationNugget : public ObjectCreationNugget force.x = GameLogicRandomValueReal(-horizForce, horizForce); force.y = GameLogicRandomValueReal(-horizForce, horizForce); force.z = 0; - - #if defined(GENERALS_ONLINE_HIGH_FPS_SERVER) - // Debris OCL launch force is too strong at 60 Hz – damp it. - force.x *= 0.5f; - force.y *= 0.5f; - force.z *= 0.5f; - #endif objUp->applyForce(&force); if (m_orientInForceDirection) @@ -1197,6 +1190,13 @@ class GenericObjectCreationNugget : public ObjectCreationNugget DUMPREAL(m_maxPitch); DUMPCOORD3D(&force); } + +#if defined(GENERALS_ONLINE_HIGH_FPS_SERVER) + force.x *= 0.5f; + force.y *= 0.5f; + force.z *= 0.5f; +#endif + objUp->applyForce(&force); if (m_orientInForceDirection) {