Compile fix

This commit is contained in:
Aokromes
2016-07-19 15:46:44 +02:00
parent a65ac56b74
commit 6ca223187b
2 changed files with 3 additions and 3 deletions

View File

@@ -2265,9 +2265,9 @@ float Map::GetHeight(float x, float y, float z, bool checkVMap /*= true*/, float
{
// we have mapheight and vmapheight and must select more appropriate
// we are already under the surface or vmap height above map heigt
// vmap height above map height
// or if the distance of the vmap height is less the land height distance
if (z < mapHeight || vmapHeight > mapHeight || std::fabs(mapHeight - z) > std::fabs(vmapHeight - z))
if (vmapHeight > mapHeight || std::fabs(mapHeight - z) > std::fabs(vmapHeight - z))
return vmapHeight;
else
return mapHeight; // better use .map surface height