Dep/Recast: Update recastnavigation to 54bb0943e5

This commit is contained in:
jackpoz
2019-04-07 21:05:23 +02:00
parent 1374658d72
commit e061663508
7 changed files with 161 additions and 182 deletions

View File

@@ -1141,7 +1141,8 @@ static void getHeightData(rcContext* ctx, const rcCompactHeightfield& chf,
static unsigned char getEdgeFlags(const float* va, const float* vb,
const float* vpoly, const int npoly)
{
// Return true if edge (va,vb) is part of the polygon.
// The flag returned by this function matches dtDetailTriEdgeFlags in Detour.
// Figure out if edge (va,vb) is part of the polygon boundary.
static const float thrSqr = rcSqr(0.001f);
for (int i = 0, j = npoly-1; i < npoly; j=i++)
{