Detour: Optimized new cost code to removed redundant edge midpoint calculations.

Detour: FIxed broken raycast code on TileNavmesh.
Detour: Added more comments to public API.
This commit is contained in:
Mikko Mononen
2009-07-20 08:05:18 +00:00
parent e1d7b3e1f5
commit cc0f1431cd
16 changed files with 1105 additions and 2403 deletions

View File

@@ -898,7 +898,7 @@ bool Sample_StatMeshTiled::handleBuild()
}
}
if (m_cfg.maxVertsPerPoly == DT_STAT_VERTS_PER_POLYGON)
if (m_cfg.maxVertsPerPoly <= DT_STAT_VERTS_PER_POLYGON)
{
unsigned char* navData = 0;
int navDataSize = 0;