Ticket #3530: testLine.patch
File testLine.patch, 748 bytes (added by , 9 years ago) |
---|
-
source/simulation2/components/CCmpObstructionManager.cpp
673 673 if (!filter.TestShape(UNIT_INDEX_TO_TAG(it->first), it->second.flags, it->second.group, INVALID_ENTITY)) 674 674 continue; 675 675 676 if (it->second.clearance == entity_pos_t::Zero()) 677 continue; 678 676 679 CFixedVector2D center(it->second.x, it->second.z); 677 680 CFixedVector2D halfSize(it->second.clearance + r, it->second.clearance + r); 678 681 if (Geometry::TestRayAASquare(CFixedVector2D(x0, z0) - center, CFixedVector2D(x1, z1) - center, halfSize))