Recast: fix compiler warnings caused by unused local variables

This commit is contained in:
Kawe Mazidjatari 2024-09-03 01:52:22 +02:00
parent afab9c2206
commit 807a327b6f
3 changed files with 0 additions and 7 deletions

View File

@ -171,8 +171,6 @@ void Editor_StaticTileMeshCommon::renderRecastDebugMenu()
const bool hasSolid = m_solid != 0;
const bool hasDMesh = m_dmesh != 0;
const bool intermediateDataUnavailable = !hasChf || !hasCset || !hasSolid || !hasDMesh;
isEnabled = getTileMeshDrawFlags() & TM_DRAWFLAGS_NAVMESH;
//ImGui::BeginDisabled(!hasNavMesh);

View File

@ -205,10 +205,7 @@ static void removeUnlinkedTiles(dtNavMesh* nav)
if (!header) continue;
if (header->userId == DT_FULL_UNLINKED_TILE_USER_ID)
{
const int polyCount = header->polyCount;
nav->removeTile(nav->getTileRef(tile), 0, 0);
}
};
}

View File

@ -631,8 +631,6 @@ dtStatus dtNavMesh::connectExtOffMeshLinks(const dtTileRef tileRef)
if (!landPolyRef)
continue;
const bool sameTile = tile == neiTile;
// Link off-mesh connection to target poly.
if (!connectOffMeshLink(tile, conPoly, landPolyRef, oppositeSide, 1, DT_NULL_TRAVERSE_TYPE, 0))
return DT_FAILURE | DT_OUT_OF_MEMORY;