projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ce6e5f
)
Fix a random commented-out piece of lighting code, altough it doesn't work any better
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 27 Nov 2011 10:07:22 +0000
(12:07 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:55 +0000
(19:13 +0200)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index ab394769b5ece8028de4211216426cc4a7ccdf18..f1fbc7a1c1c8dbf1c5287dd5b96709877057f574 100644
(file)
--- 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 p
2 = p + v3s16
(x,y,z);
+ MapBlock *block = getBlockNoCreateNoEx(p
2
);
if(block == NULL)
continue;
if(block->isDummy())
continue;
if(block->getLightingExpired())
continue;
- vmanip.initialEmerge(p
, p
);
+ vmanip.initialEmerge(p
2, p2
);
}*/
// Lighting of block will be updated completely