Skip to content
Snippets Groups Projects
Commit ec4f5874 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Fix a random commented-out piece of lighting code, altough it doesn't work any better

parent 4ce6e5f0
No related branches found
No related tags found
No related merge requests found
......@@ -860,15 +860,15 @@ void Map::updateLighting(enum LightBank bank,
for(s16 y=-1; y<=1; y++)
for(s16 x=-1; x<=1; x++)
{
v3s16 p(x,y,z);
MapBlock *block = getBlockNoCreateNoEx(p);
v3s16 p2 = p + v3s16(x,y,z);
MapBlock *block = getBlockNoCreateNoEx(p2);
if(block == NULL)
continue;
if(block->isDummy())
continue;
if(block->getLightingExpired())
continue;
vmanip.initialEmerge(p, p);
vmanip.initialEmerge(p2, p2);
}*/
// Lighting of block will be updated completely
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment