mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
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:
@@ -367,7 +367,7 @@ public:
|
|||||||
m_Tag = cmpObstructionManager->AddUnitShape(GetEntityId(),
|
m_Tag = cmpObstructionManager->AddUnitShape(GetEntityId(),
|
||||||
data.x, data.z, m_Clearance, (flags_t)(m_Flags | (m_Moving ? ICmpObstructionManager::FLAG_MOVING : 0)), m_ControlGroup);
|
data.x, data.z, m_Clearance, (flags_t)(m_Flags | (m_Moving ? ICmpObstructionManager::FLAG_MOVING : 0)), m_ControlGroup);
|
||||||
else
|
else
|
||||||
AddClusterShapes(data.x, data.x, data.a);
|
AddClusterShapes(data.x, data.z, data.a);
|
||||||
}
|
}
|
||||||
else if (!data.inWorld && m_Tag.valid())
|
else if (!data.inWorld && m_Tag.valid())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user