adspartan: : maptile: make sure extents are there and up to date when call…
…ing intersect
62d27ccbbd
This commit is contained in:
@@ -440,6 +440,8 @@ bool MapTile::intersect (math::ray const& ray, selection_result* results) const
|
||||
return false;
|
||||
}
|
||||
|
||||
recalcExtents();
|
||||
|
||||
if (!ray.intersect_bounds(_extents[0], _extents[1]))
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
std::atomic<bool> changed;
|
||||
|
||||
|
||||
bool intersect (math::ray const&, selection_result*) const;
|
||||
bool intersect (math::ray const&, selection_result*);
|
||||
|
||||
|
||||
bool GetVertex(float x, float z, glm::vec3 *V);
|
||||
|
||||
Reference in New Issue
Block a user