Remove dead code from navmesh tool

This commit is contained in:
Kawe Mazidjatari 2023-04-03 14:48:38 +02:00
parent 9a1343b231
commit e9cbe34a95
3 changed files with 2 additions and 6 deletions

View File

@ -392,9 +392,7 @@ dtNavMesh* Editor::loadAll(std::string path)
return 0;
}
dtTileRef result;
mesh->addTile(data, tileHeader.dataSize, DT_TILE_FREE_DATA, tileHeader.tileRef, &result);
auto tile = const_cast<dtMeshTile*>(mesh->getTileByRef(result));
mesh->addTile(data, tileHeader.dataSize, DT_TILE_FREE_DATA, tileHeader.tileRef, NULL);
}
fclose(fp);

View File

@ -731,8 +731,6 @@ void Editor_TileMesh::buildAllTiles()
const int ts = (int)m_tileSize;
const int tw = (gw + ts-1) / ts;
const int th = (gh + ts-1) / ts;
const float tcs = m_tileSize*m_cellSize;
// Start the build process.
m_ctx->startTimer(RC_TIMER_TEMP);

View File

@ -19,7 +19,7 @@
#include "Pch.h"
#include "NavEditor/Include/MeshLoaderBsp.h"
bool rcMeshLoaderBsp::load(const std::string& filename)
bool rcMeshLoaderBsp::load(const std::string& /*filename*/)
{
#if 0
//we expect lumps to be in same dir