Core/Misc: Fix no-pch build

This commit is contained in:
jackpoz committed 2014-05-25 15:48:06 +02:00
1 parent 2f0f8f8018
commit b4327bfc69
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ namespace VMAP
{
float maxDist = (pos2 - pos1).magnitude();
// return false if distance is over max float, in case of cheater teleporting to the end of the universe
if (maxDist == std::numeric_limits<float>::max() || !isfinite(maxDist))
if (maxDist == std::numeric_limits<float>::max() || !std::isfinite(maxDist))
return false;
// valid map coords should *never ever* produce float overflow, but this would produce NaNs too