From bbd24685fd131100bb3bb88a27bda7dd8bf0cf3c Mon Sep 17 00:00:00 2001 From: temple Date: Mon, 19 Feb 2018 18:34:06 +0000 Subject: [PATCH] Only test spawn against entities that block movement Differential Revision: https://code.wildfiregames.com/D1308 Reviewed by: elexis This was SVN commit r21267. --- source/simulation2/components/CCmpFootprint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/simulation2/components/CCmpFootprint.cpp b/source/simulation2/components/CCmpFootprint.cpp index d945acf33d..244eddeb66 100644 --- a/source/simulation2/components/CCmpFootprint.cpp +++ b/source/simulation2/components/CCmpFootprint.cpp @@ -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;