From 0476bafd0898d8b327cb11908123002cbb738d32 Mon Sep 17 00:00:00 2001 From: axelrodR Date: Wed, 25 Jun 2014 22:40:01 +0300 Subject: [PATCH] Raised the number of search iterations during optimizePathTopology() to 48. --- DetourCrowd/Source/DetourPathCorridor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DetourCrowd/Source/DetourPathCorridor.cpp b/DetourCrowd/Source/DetourPathCorridor.cpp index 54a2ab8..06ec131 100644 --- a/DetourCrowd/Source/DetourPathCorridor.cpp +++ b/DetourCrowd/Source/DetourPathCorridor.cpp @@ -359,7 +359,7 @@ bool dtPathCorridor::optimizePathTopology(dtNavMeshQuery* navquery, const dtQuer if (m_npath < 3) return false; - static const int MAX_ITER = 32; + static const int MAX_ITER = 48; static const int MAX_RES = 32; dtPolyRef res[MAX_RES];