forked from mirror/DotRecast
typo
This commit is contained in:
parent
4c29fa0686
commit
cd509ad010
|
@ -42,8 +42,7 @@ namespace DotRecast.Recast
|
||||||
/// See the #rcConfig documentation for more information on the configuration parameters.
|
/// See the #rcConfig documentation for more information on the configuration parameters.
|
||||||
///
|
///
|
||||||
/// @see rcAllocCompactHeightfield, rcHeightfield, rcCompactHeightfield, rcConfig
|
/// @see rcAllocCompactHeightfield, rcHeightfield, rcCompactHeightfield, rcConfig
|
||||||
public static RcCompactHeightfield BuildCompactHeightfield(RcTelemetry ctx, int walkableHeight, int walkableClimb,
|
public static RcCompactHeightfield BuildCompactHeightfield(RcTelemetry ctx, int walkableHeight, int walkableClimb, RcHeightfield hf)
|
||||||
RcHeightfield hf)
|
|
||||||
{
|
{
|
||||||
using var timer = ctx.ScopedTimer(RcTimerLabel.RC_TIMER_BUILD_COMPACTHEIGHTFIELD);
|
using var timer = ctx.ScopedTimer(RcTimerLabel.RC_TIMER_BUILD_COMPACTHEIGHTFIELD);
|
||||||
|
|
||||||
|
|
|
@ -269,9 +269,11 @@ namespace DotRecast.Recast
|
||||||
// Skip already visited.
|
// Skip already visited.
|
||||||
if (regn.layerId != 0xff)
|
if (regn.layerId != 0xff)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Skip if the neighbour is overlapping root region.
|
// Skip if the neighbour is overlapping root region.
|
||||||
if (Contains(root.layers, nei))
|
if (Contains(root.layers, nei))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Skip if the height range would become too large.
|
// Skip if the height range would become too large.
|
||||||
int ymin = Math.Min(root.ymin, regn.ymin);
|
int ymin = Math.Min(root.ymin, regn.ymin);
|
||||||
int ymax = Math.Max(root.ymax, regn.ymax);
|
int ymax = Math.Max(root.ymax, regn.ymax);
|
||||||
|
|
Loading…
Reference in New Issue