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

Cavegen: Make mgfractal use mgv5 cavegen

Remove CaveFractal
Add a lava depth constant to CaveV5 to make it universal
This commit is contained in:
paramat
2015-11-08 08:18:47 +00:00
parent 63e7137e3b
commit c3e179f256
4 changed files with 15 additions and 303 deletions

View File

@@ -634,7 +634,7 @@ void MapgenFractal::generateCaves(s16 max_stone_y)
PseudoRandom ps(blockseed + 21343);
u32 bruises_count = (ps.range(1, 4) == 1) ? ps.range(1, 2) : 0;
for (u32 i = 0; i < bruises_count; i++) {
CaveFractal cave(this, &ps);
CaveV5 cave(this, &ps);
cave.makeCave(node_min, node_max, max_stone_y);
}
}