Skip to content

Commit 76817fd

Browse files
committedSep 17, 2017
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.
1 parent 5b6d448 commit 76817fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎src/mapgen.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ void MapgenBasic::generateBiomes(MgStoneType *mgstone_type,
722722
nplaced++;
723723
} else {
724724
vm->m_data[vi] = MapNode(biome->c_stone);
725+
nplaced = U16_MAX; // Disable top/filler placement
725726
}
726727

727728
air_above = false;

0 commit comments

Comments
 (0)
Please sign in to comment.