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

This commit is contained in:
Perttu Ahola 2011-11-27 12:07:22 +02:00
parent 4ce6e5f0c5
commit ec4f58741b

@ -860,15 +860,15 @@ void Map::updateLighting(enum LightBank bank,
for(s16 y=-1; y<=1; y++) for(s16 y=-1; y<=1; y++)
for(s16 x=-1; x<=1; x++) for(s16 x=-1; x<=1; x++)
{ {
v3s16 p(x,y,z); v3s16 p2 = p + v3s16(x,y,z);
MapBlock *block = getBlockNoCreateNoEx(p); MapBlock *block = getBlockNoCreateNoEx(p2);
if(block == NULL) if(block == NULL)
continue; continue;
if(block->isDummy()) if(block->isDummy())
continue; continue;
if(block->getLightingExpired()) if(block->getLightingExpired())
continue; continue;
vmanip.initialEmerge(p, p); vmanip.initialEmerge(p2, p2);
}*/ }*/
// Lighting of block will be updated completely // Lighting of block will be updated completely