From 06f3ea58bfe90009a22e135bba2cdd459270f944 Mon Sep 17 00:00:00 2001 From: stevenlau Date: Sat, 15 Aug 2026 23:39:34 +0800 Subject: [PATCH] Fix engine obstruction cluster position typo Obstruction cluster are found in walls. Since position of walls would never change, that erroneous code path was probably never executed, hence it never caused any observable problems. Fixing this anyway in case it would be relevant in future. --- source/simulation2/components/CCmpObstruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/simulation2/components/CCmpObstruction.cpp b/source/simulation2/components/CCmpObstruction.cpp index ee9b532679..2b33a803bc 100644 --- a/source/simulation2/components/CCmpObstruction.cpp +++ b/source/simulation2/components/CCmpObstruction.cpp @@ -367,7 +367,7 @@ public: m_Tag = cmpObstructionManager->AddUnitShape(GetEntityId(), data.x, data.z, m_Clearance, (flags_t)(m_Flags | (m_Moving ? ICmpObstructionManager::FLAG_MOVING : 0)), m_ControlGroup); else - AddClusterShapes(data.x, data.x, data.a); + AddClusterShapes(data.x, data.z, data.a); } else if (!data.inWorld && m_Tag.valid()) {