Squashed a new lighting bug. There is still a cutoff bug for sunlight calculation, like the old blocklight bug. Need separate spreadlight function for sunlight, but it could be expensive...

This commit is contained in:
Justin Aquadro 2011-04-19 08:42:55 +00:00
parent bd62ccc04c
commit 3e3f612e5c

View file

@ -505,7 +505,7 @@ namespace Substrate
h = Math.Max(h, cw.GetHeight(x, 0));
}
for (int y = h; y < YDim; y++) {
for (int y = h + 1; y < YDim; y++) {
SetBlockSkyLight(x, y, z, BlockInfo.MAX_LUMINANCE);
}