This commit is contained in:
VG-prog 2025-09-24 10:32:48 +02:00
parent 4f1fcb10fd
commit 66c87d231a

View File

@ -1671,8 +1671,8 @@ float Map::GetHeightAccurate(uint32 phasemask, float x, float y, float z, float
float Map::GetHeightAccurate(uint32 phasemask, float x, float y, float z, float radius, float yaw,
bool vmap/*=true*/, float maxSearchDist /*= DEFAULT_HEIGHT_SEARCH*/) const
{
const float hMapMix = GetHeightAccurate(x, y, z, radius, yaw, vmap, maxSearchDist);
const float hDyn = _dynamicTree.getHeight(x, y, z, maxSearchDist, phasemask);
const float hMapMix = GetHeightAccurate(x, y, z, radius, yaw, vmap, maxSearchDist);
const float hDyn = _dynamicTree.getHeight(x, y, z, maxSearchDist, phasemask);
return std::max<float>(hMapMix, hDyn);
}