aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-27 12:07:22 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:55 +0200
commitec4f58741bedc098048234aac32662e08479fba2 (patch)
tree0813de34c7864dda8c2504066b6dd2219cb06fa1 /src
parent4ce6e5f0c51d9fe96ee13c55dcb0e015e9122f1c (diff)
downloadminetest-ec4f58741bedc098048234aac32662e08479fba2.tar.gz
minetest-ec4f58741bedc098048234aac32662e08479fba2.tar.bz2
minetest-ec4f58741bedc098048234aac32662e08479fba2.zip
Fix a random commented-out piece of lighting code, altough it doesn't work any better
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
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