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/Management/VMapManager2.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/common/Collision/Management/VMapManager2.cpp') diff --git a/src/common/Collision/Management/VMapManager2.cpp b/src/common/Collision/Management/VMapManager2.cpp index 922d68140d3..5b9cb34874b 100644 --- a/src/common/Collision/Management/VMapManager2.cpp +++ b/src/common/Collision/Management/VMapManager2.cpp @@ -234,25 +234,6 @@ namespace VMAP return VMAP_INVALID_HEIGHT_VALUE; } - float VMapManager2::getCeil(unsigned int mapId, float x, float y, float z, float maxSearchDist) - { - if (isHeightCalcEnabled() && !IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_HEIGHT)) - { - InstanceTreeMap::const_iterator instanceTree = GetMapTree(mapId); - if (instanceTree != iInstanceMapTrees.end()) - { - Vector3 pos = convertPositionToInternalRep(x, y, z); - float height = instanceTree->second->getCeil(pos, maxSearchDist); - if (!(height < G3D::finf())) - return height = VMAP_INVALID_CEIL_VALUE; // No height - - return height; - } - } - - return VMAP_INVALID_CEIL_VALUE; - } - bool VMapManager2::getAreaInfo(unsigned int mapId, float x, float y, float& z, uint32& flags, int32& adtId, int32& rootId, int32& groupId) const { if (!IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_AREAFLAG)) -- cgit v1.2.3