clang-tidy: fix many warnings

This commit is contained in:
Er2
2023-12-02 21:04:21 +03:00
parent 0f9131c43a
commit bf78dd4bf1
28 changed files with 61 additions and 57 deletions

View File

@@ -85,6 +85,8 @@ LevelChunk* ChunkCache::getChunk(int x, int z)
if (m_pChunkSource)
pChunk = m_pChunkSource->getChunk(x, z);
if (!pChunk)
return nullptr;
m_chunkMap[z][x] = pChunk;
pChunk->lightLava();
}
@@ -92,6 +94,8 @@ LevelChunk* ChunkCache::getChunk(int x, int z)
pChunk = m_chunkMap[z][x];
if (pChunk)
pChunk->load();
else
return nullptr;
if (!pChunk->field_234 && hasChunk(x + 1, z + 1) && hasChunk(x, z + 1) && hasChunk(x + 1, z))
postProcess(this, x, z);