Example fix

This commit is contained in:
Justin Aquadro 2011-05-22 05:35:55 +00:00
parent c0e5fea8dc
commit e3021a66a4

View file

@ -27,8 +27,6 @@ namespace Relight
// First blank out all of the lighting in all of the chunks // First blank out all of the lighting in all of the chunks
foreach (ChunkRef chunk in cm) { foreach (ChunkRef chunk in cm) {
if (chunk.X < -20 || chunk.X > 0 || chunk.Z < -20 || chunk.Z > 0) continue;
chunk.Blocks.RebuildHeightMap(); chunk.Blocks.RebuildHeightMap();
chunk.Blocks.ResetBlockLight(); chunk.Blocks.ResetBlockLight();
chunk.Blocks.ResetSkyLight(); chunk.Blocks.ResetSkyLight();
@ -39,8 +37,6 @@ namespace Relight
// In a separate pass, reconstruct the light // In a separate pass, reconstruct the light
foreach (ChunkRef chunk in cm) { foreach (ChunkRef chunk in cm) {
if (chunk.X < -20 || chunk.X > 0 || chunk.Z < -20 || chunk.Z > 0) continue;
chunk.Blocks.RebuildBlockLight(); chunk.Blocks.RebuildBlockLight();
chunk.Blocks.RebuildSkyLight(); chunk.Blocks.RebuildSkyLight();