This commit is contained in:
MarcEricMartel
2021-11-19 09:06:09 -05:00
parent 6b87156ff7
commit ad8f414840
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,8 @@ Chunk* World::ChunkAt(float x, float y, float z) const {
int cz = (int)z / CHUNK_SIZE_Z;
if (x < 0 || y < 0 || z < 0 ||
cx >= VIEW_DISTANCE || cz >= VIEW_DISTANCE || y >= CHUNK_SIZE_Y) return 0;
cx >= VIEW_DISTANCE || cz >= VIEW_DISTANCE || y >= CHUNK_SIZE_Y)
return 0;
return m_chunks.Get(cx, cz);
}