Minor cleanups

- remove redundant conditional
 - remove unused vars
 - remove extra ags to printf
 - reduce scope of decl
This commit is contained in:
Andy Maloney 2013-12-04 16:45:09 -05:00
parent 65099897f4
commit 396a7064dc
6 changed files with 5 additions and 8 deletions

View file

@ -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);
}
}