Skip to content

Commit

Permalink
Check the whole chunk for redrawing.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 23, 2015
1 parent 2bda27c commit 5d76f69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SonLVLAPI/LevelData.cs
Expand Up @@ -2646,8 +2646,8 @@ public static void RedrawBlock(int block, bool drawChunks)
for (int i = 0; i < Chunks.Count; i++)
{
bool dr = false;
for (int k = 0; k < 8; k++)
for (int j = 0; j < 8; j++)
for (int k = 0; k < Level.ChunkHeight / 16; k++)
for (int j = 0; j < Level.ChunkWidth / 16; j++)
if (Chunks[i].Blocks[j, k].Block == block)
dr = true;
if (dr)
Expand Down Expand Up @@ -2809,8 +2809,8 @@ public static void RedrawCol(int block, bool drawChunks)
for (int i = 0; i < Chunks.Count; i++)
{
bool dr = false;
for (int k = 0; k < 8; k++)
for (int j = 0; j < 8; j++)
for (int k = 0; k < Level.ChunkHeight / 16; k++)
for (int j = 0; j < Level.ChunkWidth / 16; j++)
if (ColInds1[Chunks[i].Blocks[j, k].Block] == block | ColInds2[Chunks[i].Blocks[j, k].Block] == block)
dr = true;
if (dr)
Expand Down

0 comments on commit 5d76f69

Please sign in to comment.