Revert "Core/Entities: Reduce the probability of units dropping under the map (#21322)"

This reverts commit 9e0faace9a.
This commit is contained in:
Shauren
2018-04-07 00:25:00 +02:00
parent 5f897589f9
commit 2dadbda24a
11 changed files with 71 additions and 284 deletions

View File

@@ -254,16 +254,3 @@ float DynamicMapTree::getHeight(float x, float y, float z, float maxSearchDist,
else
return -G3D::finf();
}
float DynamicMapTree::getCeil(float x, float y, float z, float maxSearchDist, uint32 phasemask) const
{
G3D::Vector3 v(x, y, z);
G3D::Ray r(v, G3D::Vector3(0, 0, 1));
DynamicTreeIntersectionCallback callback(phasemask);
impl->intersectZAllignedRay(r, callback, maxSearchDist);
if (callback.didHit())
return v.z + maxSearchDist;
return G3D::finf();
}