diff --git a/src/DotRecast.Detour/CompareItemX.cs b/src/DotRecast.Detour/BVItemXComparer.cs similarity index 78% rename from src/DotRecast.Detour/CompareItemX.cs rename to src/DotRecast.Detour/BVItemXComparer.cs index 4118686..ab0eb7f 100644 --- a/src/DotRecast.Detour/CompareItemX.cs +++ b/src/DotRecast.Detour/BVItemXComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Detour { - public class CompareItemX : IComparer + public class BVItemXComparer : IComparer { public int Compare(BVItem a, BVItem b) { diff --git a/src/DotRecast.Detour/CompareItemY.cs b/src/DotRecast.Detour/BVItemYComparer.cs similarity index 78% rename from src/DotRecast.Detour/CompareItemY.cs rename to src/DotRecast.Detour/BVItemYComparer.cs index 97986f4..c481dac 100644 --- a/src/DotRecast.Detour/CompareItemY.cs +++ b/src/DotRecast.Detour/BVItemYComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Detour { - public class CompareItemY : IComparer + public class BVItemYComparer : IComparer { public int Compare(BVItem a, BVItem b) { diff --git a/src/DotRecast.Detour/CompareItemZ.cs b/src/DotRecast.Detour/BVItemZComparer.cs similarity index 78% rename from src/DotRecast.Detour/CompareItemZ.cs rename to src/DotRecast.Detour/BVItemZComparer.cs index 8225705..8c9bf84 100644 --- a/src/DotRecast.Detour/CompareItemZ.cs +++ b/src/DotRecast.Detour/BVItemZComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Detour { - public class CompareItemZ : IComparer + public class BVItemZComparer : IComparer { public int Compare(BVItem a, BVItem b) { diff --git a/src/DotRecast.Detour/DtNavMeshBuilder.cs b/src/DotRecast.Detour/DtNavMeshBuilder.cs index cd7ee62..9ac7609 100644 --- a/src/DotRecast.Detour/DtNavMeshBuilder.cs +++ b/src/DotRecast.Detour/DtNavMeshBuilder.cs @@ -116,17 +116,17 @@ namespace DotRecast.Detour if (axis == 0) { // Sort along x-axis - Array.Sort(items, imin, inum, new CompareItemX()); + Array.Sort(items, imin, inum, new BVItemXComparer()); } else if (axis == 1) { // Sort along y-axis - Array.Sort(items, imin, inum, new CompareItemY()); + Array.Sort(items, imin, inum, new BVItemYComparer()); } else { // Sort along z-axis - Array.Sort(items, imin, inum, new CompareItemZ()); + Array.Sort(items, imin, inum, new BVItemZComparer()); } int isplit = imin + inum / 2;