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.
This commit is contained in:
stevenlau 2026-08-15 23:39:34 +08:00
parent 6ffc251114
commit 759159be56

View file

@ -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())
{