From: Perttu Ahola Date: Sun, 27 Nov 2011 10:07:22 +0000 (+0200) Subject: Fix a random commented-out piece of lighting code, altough it doesn't work any better X-Git-Tag: 0.4.dev-20111201-0~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec4f58741bedc098048234aac32662e08479fba2;p=oweals%2Fminetest.git Fix a random commented-out piece of lighting code, altough it doesn't work any better --- diff --git a/src/map.cpp b/src/map.cpp index ab394769b..f1fbc7a1c 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -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