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 /dep/recastnavigation/Detour/Source/DetourCommon.cpp | |
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 'dep/recastnavigation/Detour/Source/DetourCommon.cpp')
-rw-r--r-- | dep/recastnavigation/Detour/Source/DetourCommon.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/dep/recastnavigation/Detour/Source/DetourCommon.cpp b/dep/recastnavigation/Detour/Source/DetourCommon.cpp index b5700f5930b..26fe65c1781 100644 --- a/dep/recastnavigation/Detour/Source/DetourCommon.cpp +++ b/dep/recastnavigation/Detour/Source/DetourCommon.cpp @@ -16,16 +16,11 @@ // 3. This notice may not be removed or altered from any source distribution. // -#include <math.h> #include "DetourCommon.h" +#include "DetourMath.h" ////////////////////////////////////////////////////////////////////////////////////////// -float dtSqrt(float x) -{ - return sqrtf(x); -} - void dtClosestPtPointTriangle(float* closest, const float* p, const float* a, const float* b, const float* c) { @@ -360,7 +355,7 @@ void dtRandomPointInConvexPoly(const float* pts, const int npts, float* areas, acc += dacc; } - float v = dtSqrt(t); + float v = dtMathSqrtf(t); const float a = 1 - v; const float b = (1 - u) * v; |