1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Optionally specify propagateSunlight area in calcLighting

This fixes the Mapgen V5 calcLighting segfault
This commit is contained in:
kwolekr
2015-01-05 01:18:53 -05:00
parent 00bca11f59
commit 7289d61e99
4 changed files with 39 additions and 21 deletions

View File

@@ -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;
}