Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
ikpil committed Nov 13, 2023
1 parent 4c29fa0 commit cd509ad
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/DotRecast.Recast/RcCompacts.cs
Original file line number Diff line number Diff line change
@@ -42,8 +42,7 @@ public static class RcCompacts
/// 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);

2 changes: 2 additions & 0 deletions src/DotRecast.Recast/RcLayers.cs
Original file line number Diff line number Diff line change
@@ -269,9 +269,11 @@ public static RcHeightfieldLayerSet BuildHeightfieldLayers(RcTelemetry ctx, RcCo
// 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);

0 comments on commit cd509ad

Please sign in to comment.