mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix compile error for MSET 5 Recast builds
Titanfall 2 versions (MSET 5) do not support hints.
This commit is contained in:
parent
d7f2b7d319
commit
136bc8623b
@ -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
|
||||
|
||||
/// @}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user