Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/client/renderer/Chunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void Chunk::rebuild()
TileRenderer tileRenderer(t, &region);

TilePos tp(min);
LevelChunk* chunk = region.getChunkAt(tp);
for (int layer = Tile::RENDER_LAYERS_MIN; layer <= Tile::RENDER_LAYERS_MAX; layer++)
{
bool started = false, rendered = false, renderNextLayer = false;
Expand All @@ -155,7 +156,7 @@ void Chunk::rebuild()
{
for (tp.x = min.x; tp.x < max.x; tp.x++)
{
TileID tile = region.getTile(tp);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comment out line 158 instead of removing it, then put comment above explaining why this change was made. In the event of a regression way down the line, it will make this easier to find.

TileID tile = chunk->getTile(tp);
if (tile <= 0) continue;

if (!started)
Expand Down