summaryrefslogtreecommitdiff
path: root/src/mapgen_v7.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-04-07 02:26:46 -0400
committerkwolekr <kwolekr@minetest.net>2013-04-07 02:26:46 -0400
commit96e2931c5c154262566359495d4a0b8515376947 (patch)
tree02b2f587b6cdce36dcdd90d508a632d8d9874bb4 /src/mapgen_v7.cpp
parent5961106f9ffd9e9a2bc23e4bd700f6ce07505c9a (diff)
downloadminetest-96e2931c5c154262566359495d4a0b8515376947.tar.gz
minetest-96e2931c5c154262566359495d4a0b8515376947.tar.bz2
minetest-96e2931c5c154262566359495d4a0b8515376947.zip
Fix black tree leaves, reduce above-ground cave shadows
Diffstat (limited to 'src/mapgen_v7.cpp')
-rw-r--r--src/mapgen_v7.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp
index af453c2ec..6aecfe310 100644
--- a/src/mapgen_v7.cpp
+++ b/src/mapgen_v7.cpp
@@ -186,7 +186,9 @@ void MapgenV7::makeChunk(BlockMakeData *data) {
//printf("makeChunk: %dms\n", t.stop());
updateLiquid(&data->transforming_liquid, full_node_min, full_node_max);
- calcLighting(node_min, node_max);
+
+ calcLighting(node_min - v3s16(1, 0, 1) * MAP_BLOCKSIZE,
+ node_max + v3s16(1, 0, 1) * MAP_BLOCKSIZE);
//setLighting(node_min, node_max, 0xFF);
this->generating = false;