MMaps Updates, Needs tested.

Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
hondacrx
2021-12-02 14:50:55 -05:00
parent 30265c0716
commit f5695f0cf2
11 changed files with 279 additions and 257 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ namespace Framework.GameMath
for (int i = 0; i < 3; ++i)
{
if (!float.IsInfinity(_edgeVector[i].Length()))
if (!float.IsFinite(_edgeVector[i].Length()))
{
finiteExtent = false;
// If the extent is infinite along an axis, make the center zero to avoid NaNs
@@ -95,7 +95,7 @@ namespace Framework.GameMath
public bool isFinite()
{
return float.IsInfinity(_volume);
return float.IsFinite(_volume);
}
}
}