Core/Misc: Fix no-pch build
This commit is contained in:
1 parent
2f0f8f8018
commit
b4327bfc69
2 files changed
+4
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user