From 5b6905bd8fdbdcea1e1fe900207b6c1bd3895f45 Mon Sep 17 00:00:00 2001 From: ikpil Date: Wed, 22 May 2024 23:48:52 +0900 Subject: [PATCH] Changed `MAX_STEER_POINTS` from class constant to local. --- CHANGELOG.md | 3 ++- src/DotRecast.Detour/DtPathUtils.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index affc210..5288a1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Changed `DtTileCacheBuilder` to a static class - Changed `DtTileCacheLayerHeaderReader` to a static class - Changed `Dictionary>` to `DtMeshTile[]` to optimize memory usage - +- Changed `MAX_STEER_POINTS` from class constant to local. + ### Removed - Nothing diff --git a/src/DotRecast.Detour/DtPathUtils.cs b/src/DotRecast.Detour/DtPathUtils.cs index 3141ba1..7dbaa6b 100644 --- a/src/DotRecast.Detour/DtPathUtils.cs +++ b/src/DotRecast.Detour/DtPathUtils.cs @@ -28,13 +28,13 @@ namespace DotRecast.Detour public static class DtPathUtils { - private const int MAX_STEER_POINTS = 3; - public static bool GetSteerTarget(DtNavMeshQuery navQuery, RcVec3f startPos, RcVec3f endPos, float minTargetDist, List path, int pathSize, out RcVec3f steerPos, out int steerPosFlag, out long steerPosRef) { + const int MAX_STEER_POINTS = 3; + steerPos = RcVec3f.Zero; steerPosFlag = 0; steerPosRef = 0;