minor update

This commit is contained in:
T1ti
2024-06-17 23:17:07 +02:00
parent 063297b5b6
commit aac2960759
4 changed files with 15 additions and 3 deletions

View File

@@ -423,10 +423,12 @@ void MapIndex::unloadTiles(const TileIndex& tile)
void MapIndex::unloadTile(const TileIndex& tile)
{
// unloads a tile with givn cords
// unloads a tile with given cords
if (tileLoaded(tile))
{
Log << "Unload Tile " << tile.x << "-" << tile.z << std::endl;
AsyncLoader::instance().ensure_deletable(mTiles[tile.z][tile.x].tile.get());
mTiles[tile.z][tile.x].tile = nullptr;
_n_loaded_tiles--;
}