From 7212afaac6ec29f49ae6afcd46acb5e5be42c0b1 Mon Sep 17 00:00:00 2001 From: ikpil Date: Thu, 16 May 2024 01:09:10 +0900 Subject: [PATCH] needed by Dotrecast --- src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs index 50f84ba..bd1dd20 100644 --- a/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs +++ b/src/DotRecast.Detour.Extras/Unity/Astar/GraphMeshDataReader.cs @@ -126,7 +126,7 @@ namespace DotRecast.Detour.Extras.Unity.Astar header.vertCount = vertsCount; header.detailMeshCount = nodeCount; header.detailTriCount = nodeCount; - header.maxLinkCount = nodeCount * 3 * 2; // XXX: Needed by Recast, not needed by recast4j + header.maxLinkCount = nodeCount * 3 * 2; // needed by Recast, not needed by recast4j, needed by DotRecast header.bmin.X = meta.forcedBoundsCenter.x - 0.5f * meta.forcedBoundsSize.x + meta.cellSize * meta.tileSizeX * x; header.bmin.Y = ymin;