mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-28 21:16:19 +00:00
fix for issue 85:Make getSpanCount accessible
This commit is contained in:
@@ -105,7 +105,7 @@ void rcMarkWalkableTriangles(const float walkableSlopeAngle,
|
||||
}
|
||||
}
|
||||
|
||||
static int getSpanCount(unsigned char flags, rcHeightfield& hf)
|
||||
int rcGetHeightFieldSpanCount(const unsigned char flags, rcHeightfield& hf)
|
||||
{
|
||||
const int w = hf.width;
|
||||
const int h = hf.height;
|
||||
@@ -132,7 +132,7 @@ bool rcBuildCompactHeightfield(const int walkableHeight, const int walkableClimb
|
||||
|
||||
const int w = hf.width;
|
||||
const int h = hf.height;
|
||||
const int spanCount = getSpanCount(flags, hf);
|
||||
const int spanCount = rcGetHeightFieldSpanCount(flags, hf);
|
||||
|
||||
// Fill in header.
|
||||
chf.width = w;
|
||||
|
||||
Reference in New Issue
Block a user