Recast: reverse some fields

This commit is contained in:
Kawe Mazidjatari 2024-04-03 14:52:12 +02:00
parent 4745bf5e8e
commit 564efaf394
2 changed files with 6 additions and 3 deletions

View File

@ -103,6 +103,9 @@ enum dtTileFlags
{
/// The navigation mesh owns the tile memory and is responsible for freeing it.
DT_TILE_FREE_DATA = 0x01,
/// The navigation mesh owns the offmesh connection memory and is responsible for freeing it.
DT_OFFMESH_FREE_DATA = 0x02,
};
/// Vertex flags returned by dtNavMeshQuery::findStraightPath.
@ -326,7 +329,7 @@ struct dtMeshTile
int dataSize; ///< Size of the tile data.
int flags; ///< Tile flags. (See: #dtTileFlags)
dtMeshTile* next; ///< The next free tile, or the next tile in the spatial grid.
void* unused;
void* unknownVTableInstance; // See [r5apex_ds + F437D9] for usage
private:
dtMeshTile(const dtMeshTile&);
dtMeshTile& operator=(const dtMeshTile&);

View File

@ -206,7 +206,7 @@ dtNavMesh::dtNavMesh() :
m_orig[2] = 0;
}
dtNavMesh::~dtNavMesh()
dtNavMesh::~dtNavMesh() // TODO: see [r5apex_ds + F43720] to re-implement this correctly
{
for (int i = 0; i < m_maxTiles; ++i)
{
@ -1021,7 +1021,7 @@ dtStatus dtNavMesh::addTile(unsigned char* data, int dataSize, int flags,
tile->data = data;
tile->dataSize = dataSize;
tile->flags = flags;
tile->unused = nullptr;
tile->unknownVTableInstance = nullptr;
connectIntLinks(tile);