Skip to content

Commit

Permalink
reorder variable declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Jul 13, 2024
1 parent 990dbcf commit eccce01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/DotRecast.Recast/RcLayers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ namespace DotRecast.Recast

public static class RcLayers
{
const int RC_MAX_LAYERS = RcRecast.RC_NOT_CONNECTED;
const int RC_MAX_NEIS = 16;

private static void AddUnique(List<int> a, int v)
{
if (!a.Contains(v))
Expand Down
5 changes: 5 additions & 0 deletions src/DotRecast.Recast/RcRecast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public static class RcRecast
/// The number of spans allocated per span spool.
/// @see rcSpanPool
public const int RC_SPANS_PER_POOL = 2048;

// Must be 255 or smaller (not 256) because layer IDs are stored as
// a byte where 255 is a special value.
public const int RC_MAX_LAYERS = RC_NOT_CONNECTED;
public const int RC_MAX_NEIS = 16;

/// Heighfield border flag.
/// If a heightfield region ID has this bit set, then the region is a border
Expand Down

0 comments on commit eccce01

Please sign in to comment.