Core/Misc: Fix some -Wconversion warnings

This commit is contained in:
jackpoz committed 2014-08-23 19:56:41 +02:00
1 parent f5f9df0483
commit 7fe7f30521
85 files changed
+207 -206

No files matched your search

+1 -1
View File
@@ -2171,7 +2171,7 @@ float Map::GetHeight(float x, float y, float z, bool checkVMap /*= true*/, float
// we are already under the surface or vmap height above map heigt
// or if the distance of the vmap height is less the land height distance
if (z < mapHeight || vmapHeight > mapHeight || fabs(mapHeight-z) > fabs(vmapHeight-z))
if (z < mapHeight || vmapHeight > mapHeight || std::fabs(mapHeight - z) > std::fabs(vmapHeight - z))
return vmapHeight;
else
return mapHeight; // better use .map surface height