Skip to content

Commit

Permalink
for sl
Browse files Browse the repository at this point in the history
  • Loading branch information
IronException authored Aug 19, 2019
1 parent c9adba3 commit 04b75fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chunkrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ void ChunkRenderer::renderChunk(QSharedPointer<Chunk> chunk) {
int top = depth;
if (top > chunk->highest)
top = chunk->highest;
if (flags & flgSingleLayer)
top = depth;
int highest = 0;
for (int y = top; y >= 0; y--) { // top->down
// perform a one deep scan in SingleLayer mode
if ((flags & flgSingleLayer) && (y < top))
break;
int sec = y >> 4;
ChunkSection *section = chunk->sections[sec];
if (!section) {
Expand Down

0 comments on commit 04b75fa

Please sign in to comment.