aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_flat.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-05-19 03:40:22 -0400
committerkwolekr <kwolekr@minetest.net>2016-05-27 23:23:58 -0400
commit548d99bb456931192609e8c6fa1eb4c80679af42 (patch)
treeaff02ee1128c33c06212ddd353a5b26778213991 /src/mapgen_flat.cpp
parent6151f7bc4b32c2576035bd3381bd81ae287c57eb (diff)
downloadminetest-548d99bb456931192609e8c6fa1eb4c80679af42.tar.gz
minetest-548d99bb456931192609e8c6fa1eb4c80679af42.tar.bz2
minetest-548d99bb456931192609e8c6fa1eb4c80679af42.zip
Cavegen: Move V5-style caves to CavesNoiseIntersection
Diffstat (limited to 'src/mapgen_flat.cpp')
-rw-r--r--src/mapgen_flat.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mapgen_flat.cpp b/src/mapgen_flat.cpp
index 2cbf9ace0..a541a54f3 100644
--- a/src/mapgen_flat.cpp
+++ b/src/mapgen_flat.cpp
@@ -58,8 +58,6 @@ MapgenFlat::MapgenFlat(int mapgenid, MapgenParams *params, EmergeManager *emerge
//// amount of elements to skip for the next index
//// for noise/height/biome maps (not vmanip)
this->ystride = csize.X;
- // 1-down overgeneration
- this->zstride_1d = csize.X * (csize.Y + 1);
this->heightmap = new s16[csize.X * csize.Z];
@@ -78,10 +76,8 @@ MapgenFlat::MapgenFlat(int mapgenid, MapgenParams *params, EmergeManager *emerge
noise_terrain = new Noise(&sp->np_terrain, seed, csize.X, csize.Z);
noise_filler_depth = new Noise(&sp->np_filler_depth, seed, csize.X, csize.Z);
- //// 3D noise
- // 1-down overgeneraion
- noise_cave1 = new Noise(&sp->np_cave1, seed, csize.X, csize.Y + 1, csize.Z);
- noise_cave2 = new Noise(&sp->np_cave2, seed, csize.X, csize.Y + 1, csize.Z);
+ MapgenBasic::np_cave1 = sp->np_cave1;
+ MapgenBasic::np_cave2 = sp->np_cave2;
//// Initialize biome generator
biomegen = emerge->biomemgr->createBiomeGen(
@@ -119,8 +115,6 @@ MapgenFlat::~MapgenFlat()
{
delete noise_terrain;
delete noise_filler_depth;
- delete noise_cave1;
- delete noise_cave2;
delete biomegen;