summaryrefslogtreecommitdiff
path: root/src/mapblock_mesh.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-25 16:32:09 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-25 16:32:09 +0300
commitaed9e809a19bffdf911f75dd9d718efb8decd2c1 (patch)
treebce949a0722a7bf007f4c50822dc3f69292e3c05 /src/mapblock_mesh.cpp
parente8a731adc502d19a8ae3bfeee5b985f90ab8a507 (diff)
downloadminetest-aed9e809a19bffdf911f75dd9d718efb8decd2c1.tar.gz
minetest-aed9e809a19bffdf911f75dd9d718efb8decd2c1.tar.bz2
minetest-aed9e809a19bffdf911f75dd9d718efb8decd2c1.zip
mapgen stuff
Diffstat (limited to 'src/mapblock_mesh.cpp')
-rw-r--r--src/mapblock_mesh.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index a8624e8f3..d4921c2c5 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -347,7 +347,9 @@ u8 getSmoothLight(v3s16 p, VoxelManipulator &vmanip, u32 daynight_ratio)
for(u32 i=0; i<8; i++)
{
MapNode n = vmanip.getNodeNoEx(p - dirs8[i]);
- if(content_features(n.d).param_type == CPT_LIGHT)
+ if(content_features(n.d).param_type == CPT_LIGHT
+ // Fast-style leaves look better this way
+ && content_features(n.d).solidness != 2)
{
light += decode_light(n.getLightBlend(daynight_ratio));
light_count++;