From 6fd2d418569278e4c0180bd11f8c04d6c798f15c Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:56:51 +0200 Subject: [PATCH] Recast: fix traverse link generation for type '1' Should overlap on both sub-edges before the link gets established. Avoids the AI getting stuck in game when they don't. --- src/naveditor/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naveditor/Editor.cpp b/src/naveditor/Editor.cpp index dbac4a02..4db333cd 100644 --- a/src/naveditor/Editor.cpp +++ b/src/naveditor/Editor.cpp @@ -74,7 +74,7 @@ static void initTraverseTableParams() { s_traverseTable[0] = { 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, -1.f, false }; // Unused - s_traverseTable[1] = { 10.f, 120.f, 0.f, 48.f, 0.f, 67.f, -1.f, false }; + s_traverseTable[1] = { 10.f, 120.f, 0.f, 48.f, 0.f, 67.f, 0.f, false }; s_traverseTable[2] = { 120.f, 160.f, 48.f, 96.f, 5.f, 78.f, 0.f, false }; s_traverseTable[3] = { 160.f, 220.f, 0.f, 128.f, 0.f, 38.f, 0.f, false };