Removed redundant dtSqrt function and replaced calls to it with dtMathSqrtf

This commit is contained in:
grahamboree
2015-01-03 16:00:00 -05:00
parent 2f788530f5
commit 45b36f4d75
4 changed files with 10 additions and 18 deletions
+1 -1
View File
@@ -745,7 +745,7 @@ void NavMeshTesterTool::recalc()
// Find movement delta.
float delta[3], len;
dtVsub(delta, steerPos, iterPos);
len = dtSqrt(dtVdot(delta,delta));
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 < STEP_SIZE)
len = 1;