Recast: fix compile error for MSET 5 Recast builds

Titanfall 2 versions (MSET 5) do not support hints.
This commit is contained in:
Kawe Mazidjatari 2024-10-22 14:28:03 +02:00
parent d7f2b7d319
commit 136bc8623b
2 changed files with 6 additions and 0 deletions

View File

@ -871,7 +871,9 @@ public:
/// @param[in] size The size of the traverse table.
void setTraverseTableSize(const int size) { m_params.traverseTableSize = size; }
#if DT_NAVMESH_SET_VERSION >= 7
void freeHints();
#endif
/// @}

View File

@ -293,7 +293,9 @@ dtNavMesh::~dtNavMesh()
rdFree(m_tiles);
freeTraverseTables();
#if DT_NAVMESH_SET_VERSION >= 7
freeHints();
#endif
}
dtStatus dtNavMesh::init(const dtNavMeshParams* params)
@ -2091,6 +2093,7 @@ void dtNavMesh::setTraverseTable(const int index, int* const table)
m_traverseTables[index] = table;
}
#if DT_NAVMESH_SET_VERSION >= 7
void dtNavMesh::freeHints()
{
for (int i = 0; i < m_params.hintCount; i++)
@ -2103,6 +2106,7 @@ void dtNavMesh::freeHints()
rdFree(m_hints);
}
#endif
dtStatus dtNavMesh::setPolyFlags(dtPolyRef ref, unsigned short flags)
{