From 1c7bd46812966b6d46fefd7570a3043a2816fa2e Mon Sep 17 00:00:00 2001 From: axelrodR Date: Fri, 27 Jun 2014 23:23:29 +0300 Subject: [PATCH] returned MAX_ITER of optimizePathTopology to 32 after I removed the multi-nodes per tile --- 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 06ec131..54a2ab8 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 = 48; + static const int MAX_ITER = 32; static const int MAX_RES = 32; dtPolyRef res[MAX_RES];