Compare commits

..

No commits in common. "nowinar/fix-for-changing-render-distance" and "main" have entirely different histories.

View File

@ -103,12 +103,10 @@ void Planet::ChunkThreadUpdate()
chunks.find({ pos.x, pos.y, pos.z - 1 }) == chunks.end())
{
delete chunkData.at(pos);
it = chunkData.erase(it);
chunkData.erase(pos);
}
else {
++it;
}
}
// Check if camera moved to new chunk
if (camChunkX != lastCamX || camChunkY != lastCamY || camChunkZ != lastCamZ)