1
0
forked from mirrors/0ad

Only test spawn against entities that block movement

Differential Revision: https://code.wildfiregames.com/D1308
Reviewed by: elexis
This was SVN commit r21267.
This commit is contained in:
temple
2018-02-19 18:34:06 +00:00
parent 8811029791
commit bbd24685fd
@@ -183,8 +183,8 @@ public:
if (!cmpPathfinder)
return error;
// Ignore collisions with the spawned entity.
SkipTagObstructionFilter filter(spawnedTag);
// Ignore collisions with the spawned entity and entities that don't block movement.
SkipTagRequireFlagsObstructionFilter filter(spawnedTag, ICmpObstructionManager::FLAG_BLOCK_MOVEMENT);
CFixedVector2D initialPos = cmpPosition->GetPosition2D();
entity_angle_t initialAngle = cmpPosition->GetRotation().Y;