MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / clearTiles

Method clearTiles

source/gamemap/TileContainer.cpp:346–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void TileContainer::clearTiles()
347{
348 if (mTiles)
349 {
350 for (int ii = 0; ii < mMapSizeX; ++ii)
351 {
352 for (int jj = 0; jj < mMapSizeY; ++jj)
353 {
354 mTiles[ii][jj]->destroyMesh();
355 delete mTiles[ii][jj];
356 }
357 delete[] mTiles[ii];
358 }
359 delete[] mTiles;
360 mTiles = nullptr;
361 }
362 mMapSizeX = 0;
363 mMapSizeY = 0;
364}
365
366bool TileContainer::addTile(Tile* t)
367{

Callers

nothing calls this directly

Calls 1

destroyMeshMethod · 0.80

Tested by

no test coverage detected