0

Remove unused access to blocklight array.

This commit is contained in:
Alejandro Aguilera
2011-06-19 01:36:41 +02:00
parent 8eda22055f
commit 278eabbae3

View File

@@ -181,11 +181,9 @@ get_lighting_coefficient(RenderModeLighting *self, RenderState *state,
if (is_transparent(upper_block)) { if (is_transparent(upper_block)) {
skylevel = getArrayByte3D(skylight, local_x, local_y, local_z + 1); skylevel = getArrayByte3D(skylight, local_x, local_y, local_z + 1);
} }
blocklevel = getArrayByte3D(blocklight, local_x, local_y, local_z);
} else { } else {
upper_block = 0; upper_block = 0;
skylevel = 15; skylevel = 15;
blocklevel = getArrayByte3D(blocklight, local_x, local_y, local_z);
} }
/* the block has a bad blocklevel, estimate it from neigborhood /* the block has a bad blocklevel, estimate it from neigborhood