Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Biome generation: Fix layers of 'filler' nodes at biome y limits
Error was exposed by commit a1389c3
'nplaced' was not set to U16_MAX when biome 'stone' was placed, so when
biome was recalculated in a column of stone, the 'nplaced' value
caused a few remaining filler nodes to be placed.
Occurs when the lower biome has a deeper depth of 'top' plus 'filler'
than the upper biome.
  • Loading branch information
paramat committed Sep 17, 2017
1 parent 5b6d448 commit 76817fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mapgen.cpp
Expand Up @@ -722,6 +722,7 @@ void MapgenBasic::generateBiomes(MgStoneType *mgstone_type,
nplaced++;
} else {
vm->m_data[vi] = MapNode(biome->c_stone);
nplaced = U16_MAX; // Disable top/filler placement
}

air_above = false;
Expand Down

0 comments on commit 76817fd

Please sign in to comment.