mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Minor cleanups
- remove redundant conditional - remove unused vars - remove extra ags to printf - reduce scope of decl
This commit is contained in:
parent
65099897f4
commit
396a7064dc
6 changed files with 5 additions and 8 deletions
|
|
@ -401,10 +401,9 @@ void NavMesh::buildNextTile()
|
|||
nm->removeTile(nm->getTileRefAt(tile.x, tile.y, 0), 0, 0);
|
||||
// Add new data (navmesh owns and deletes the data).
|
||||
dtStatus status = nm->addTile(data, dataSize, DT_TILE_FREE_DATA, 0, 0);
|
||||
int success = 1;
|
||||
|
||||
if(dtStatusFailed(status))
|
||||
{
|
||||
success = 0;
|
||||
dtFree(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue