From cd509ad010f8aef5742ec95738e87c10af4e1205 Mon Sep 17 00:00:00 2001 From: ikpil Date: Mon, 13 Nov 2023 23:35:53 +0900 Subject: [PATCH] typo --- src/DotRecast.Recast/RcCompacts.cs | 3 +-- src/DotRecast.Recast/RcLayers.cs | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DotRecast.Recast/RcCompacts.cs b/src/DotRecast.Recast/RcCompacts.cs index 60a66c5..82560b4 100644 --- a/src/DotRecast.Recast/RcCompacts.cs +++ b/src/DotRecast.Recast/RcCompacts.cs @@ -42,8 +42,7 @@ namespace DotRecast.Recast /// See the #rcConfig documentation for more information on the configuration parameters. /// /// @see rcAllocCompactHeightfield, rcHeightfield, rcCompactHeightfield, rcConfig - public static RcCompactHeightfield BuildCompactHeightfield(RcTelemetry ctx, int walkableHeight, int walkableClimb, - RcHeightfield hf) + public static RcCompactHeightfield BuildCompactHeightfield(RcTelemetry ctx, int walkableHeight, int walkableClimb, RcHeightfield hf) { using var timer = ctx.ScopedTimer(RcTimerLabel.RC_TIMER_BUILD_COMPACTHEIGHTFIELD); diff --git a/src/DotRecast.Recast/RcLayers.cs b/src/DotRecast.Recast/RcLayers.cs index 244b140..bffb989 100644 --- a/src/DotRecast.Recast/RcLayers.cs +++ b/src/DotRecast.Recast/RcLayers.cs @@ -269,9 +269,11 @@ namespace DotRecast.Recast // Skip already visited. if (regn.layerId != 0xff) continue; + // Skip if the neighbour is overlapping root region. if (Contains(root.layers, nei)) continue; + // Skip if the height range would become too large. int ymin = Math.Min(root.ymin, regn.ymin); int ymax = Math.Max(root.ymax, regn.ymax);