diff options
author | jackpoz <giacomopoz@gmail.com> | 2015-06-28 19:51:59 +0200 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2015-06-29 15:52:57 +0100 |
commit | a48f8f4de9c0fc8251fdbb90a09be9e64fc6a19e (patch) | |
tree | 4df32186bd3a93150021a0592d723d6c51cdad55 /src | |
parent | a51300f8142d5ef2a7965ec4c5be97c5fc1cf33b (diff) |
Core/Dependencies: Update recast
Update recast to https://github.com/memononen/recastnavigation/commit/1dd5cf1883d61e723fef3d4957cf758c50e7a52b
Fix 2 warnings.
These changes have no effect on MMAPs and it's not needed to re-extact them.
(cherry picked from commit dfa556aaa2fd60f881845d381f71294b945396f6)
Conflicts:
dep/PackageList.txt
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Movement/PathGenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp index 0e436715622..66034e75fc3 100644 --- a/src/server/game/Movement/PathGenerator.cpp +++ b/src/server/game/Movement/PathGenerator.cpp @@ -117,7 +117,7 @@ dtPolyRef PathGenerator::GetPathPolyByPosition(dtPolyRef const* polyPath, uint32 } if (distance) - *distance = dtSqrt(minDist3d); + *distance = dtMathSqrtf(minDist3d); return (minDist2d < 3.0f) ? nearestPoly : INVALID_POLYREF; } @@ -800,7 +800,7 @@ dtStatus PathGenerator::FindSmoothPath(float const* startPos, float const* endPo // Find movement delta. float delta[VERTEX_SIZE]; dtVsub(delta, steerPos, iterPos); - float len = dtSqrt(dtVdot(delta, delta)); + float len = dtMathSqrtf(dtVdot(delta, delta)); // If the steer target is end of path or off-mesh link, do not move past the location. if ((endOfPath || offMeshConnection) && len < SMOOTH_PATH_STEP_SIZE) len = 1.0f; |