1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Mapgen: Optimize biomemap creation by combining with generateBiomes

This commit is contained in:
kwolekr 2016-06-04 20:24:07 -04:00
parent d24f384174
commit d4457ef420
6 changed files with 18 additions and 11 deletions

View file

@ -250,10 +250,7 @@ void MapgenValleys::makeChunk(BlockMakeData *data)
// Generate base terrain with initial heightmaps
s16 stone_surface_max_y = generateTerrain();
// Build biomemap
m_bgen->getBiomes(heightmap);
// Place biome-specific nodes
// Place biome-specific nodes and build biomemap
MgStoneType stone_type = generateBiomes();
// Cave creation.