From 7836b78bb4959ef2d606dd30749deb565dc618ee Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 23 Feb 2024 00:52:23 +0900 Subject: [PATCH] added DtCrowdConst.MAX_PATH_RESULT = 256 --- src/DotRecast.Detour.Crowd/DtCrowd.cs | 2 +- src/DotRecast.Detour.Crowd/DtCrowdConst.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DotRecast.Detour.Crowd/DtCrowd.cs b/src/DotRecast.Detour.Crowd/DtCrowd.cs index 11504f0..892c4b3 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowd.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowd.cs @@ -168,7 +168,7 @@ namespace DotRecast.Detour.Crowd } // Allocate temp buffer for merging paths. - _maxPathResult = 256; + _maxPathResult = DtCrowdConst.MAX_PATH_RESULT; _pathQ = new DtPathQueue(config); _agents = new List(); diff --git a/src/DotRecast.Detour.Crowd/DtCrowdConst.cs b/src/DotRecast.Detour.Crowd/DtCrowdConst.cs index fc1a836..596a4a9 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowdConst.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowdConst.cs @@ -30,5 +30,6 @@ public const int MAX_ITERS_PER_UPDATE = 100; public const int MAX_PATHQUEUE_NODES = 4096; public const int MAX_COMMON_NODES = 512; + public const int MAX_PATH_RESULT = 256; } } \ No newline at end of file