From 2dadbda24ac1c2e6ff3dad650c7e25f4b3322342 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 7 Apr 2018 00:25:00 +0200 Subject: Revert "Core/Entities: Reduce the probability of units dropping under the map (#21322)" This reverts commit 9e0faace9a5114fc2324c2c601ba943272e0d6ff. --- src/common/Collision/Maps/MapTree.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/common/Collision/Maps/MapTree.cpp') diff --git a/src/common/Collision/Maps/MapTree.cpp b/src/common/Collision/Maps/MapTree.cpp index c96adb6c87c..3a927acc310 100644 --- a/src/common/Collision/Maps/MapTree.cpp +++ b/src/common/Collision/Maps/MapTree.cpp @@ -236,19 +236,6 @@ namespace VMAP return(height); } - float StaticMapTree::getCeil(const G3D::Vector3 & pPos, float maxSearchDist) const - { - float height = G3D::finf(); - Vector3 dir = Vector3(0, 0, 1); - G3D::Ray ray(pPos, dir); // direction with length of 1 - float maxDist = maxSearchDist; - if (getIntersectionTime(ray, maxDist, false, ModelIgnoreFlags::Nothing)) - { - height = pPos.z + maxDist; - } - return(height); - } - //========================================================= LoadResult StaticMapTree::CanLoadMap(const std::string &vmapPath, uint32 mapID, uint32 tileX, uint32 tileY) { -- cgit v1.2.3