From 7289d61e99625b46eb2c4d6b90a2a5de42f207e6 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 5 Jan 2015 01:18:53 -0500 Subject: Optionally specify propagateSunlight area in calcLighting This fixes the Mapgen V5 calcLighting segfault --- src/mapgen_v5.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mapgen_v5.cpp') diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index 16fe4be5d..e220455bf 100644 --- a/src/mapgen_v5.cpp +++ b/src/mapgen_v5.cpp @@ -289,8 +289,10 @@ void MapgenV5::makeChunk(BlockMakeData *data) updateLiquid(&data->transforming_liquid, full_node_min, full_node_max); // Calculate lighting - if (flags & MG_LIGHT) - calcLighting(node_min - v3s16(0, 1, 0), node_max + v3s16(0, 1, 0)); + if (flags & MG_LIGHT) { + calcLighting(node_min - v3s16(0, 1, 0), node_max + v3s16(0, 1, 0), + full_node_min, full_node_max); + } this->generating = false; } -- cgit v1.2.3