Recast: restore traverse type 1 minimum distance value

This was increased in commit 0a4817a707035e49e757dcd16d132ac5a5a9a46c to address an issue where the AI gets stuck in corners, but the issue also happened on other traverse types (abeit much more rare). After investigating the problem again, the issue was caused by connecting adjacent polygons with traverse portals (which causes an infinite recursion during pathfinding if the first link of that polygon happens to reference the one from which the traversal is taking place). This issue has been patched in commit 582ecec0381b4071f2f7fd1920eeb27c8c8539c7, therefore, we should restore this to its default value again.
This commit is contained in:
Kawe Mazidjatari 2024-10-31 19:24:46 +01:00
parent 48aa2700fa
commit bbb6d8569c

View File

@ -90,7 +90,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] = { 48.f, 120.f, 0.f, 48.f, 0.f, 67.f, 0.f, false };
s_traverseTable[1] = { 0.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 };