mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Mapgen caves: Re-order generation to fix cavern bug
Previously, caverns confused tunnel generation causing biome top and filler nodes to appear in caverns. Split 'generateCaves()' into 2 functions to separate tunnel and large randomwalk cave generation. In each mapgen re-order cave generation to generate tunnels before caverns.
This commit is contained in:
parent
bb3baef30f
commit
54606e103d
8 changed files with 73 additions and 39 deletions
|
@ -238,11 +238,12 @@ public:
|
|||
MapgenBasic(int mapgenid, MapgenParams *params, EmergeManager *emerge);
|
||||
virtual ~MapgenBasic();
|
||||
|
||||
virtual void generateCaves(s16 max_stone_y, s16 large_cave_depth);
|
||||
virtual bool generateCaverns(s16 max_stone_y);
|
||||
virtual void generateDungeons(s16 max_stone_y);
|
||||
virtual void generateBiomes();
|
||||
virtual void dustTopNodes();
|
||||
virtual void generateCavesNoiseIntersection(s16 max_stone_y);
|
||||
virtual void generateCavesRandomWalk(s16 max_stone_y, s16 large_cave_depth);
|
||||
virtual bool generateCavernsNoise(s16 max_stone_y);
|
||||
virtual void generateDungeons(s16 max_stone_y);
|
||||
|
||||
protected:
|
||||
EmergeManager *m_emerge;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue