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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user