mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix compiler warnings caused by unused local variables
This commit is contained in:
parent
afab9c2206
commit
807a327b6f
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user