aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v7.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-03-07 03:15:12 +0000
committerparamat <mat.gregory@virginmedia.com>2015-03-08 03:54:03 +0000
commitd463000595ee2b8bce94e5b99e764be6e1fd52f6 (patch)
tree89a488c35ff82936ba40462a5673c86eef5a7e09 /src/mapgen_v7.cpp
parent267c9f4cb4616afcf07a2a33aaca43a903ac895a (diff)
downloadminetest-d463000595ee2b8bce94e5b99e764be6e1fd52f6.tar.gz
minetest-d463000595ee2b8bce94e5b99e764be6e1fd52f6.tar.bz2
minetest-d463000595ee2b8bce94e5b99e764be6e1fd52f6.zip
Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found
Diffstat (limited to 'src/mapgen_v7.cpp')
-rw-r--r--src/mapgen_v7.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp
index 4b5a10ca1..09e6e54c2 100644
--- a/src/mapgen_v7.cpp
+++ b/src/mapgen_v7.cpp
@@ -64,8 +64,6 @@ MapgenV7::MapgenV7(int mapgenid, MapgenParams *params, EmergeManager *emerge)
this->heightmap = new s16[csize.X * csize.Z];
this->ridge_heightmap = new s16[csize.X * csize.Z];
- initHeightMap(this->heightmap, csize.X * csize.Z);
-
MapgenV7Params *sp = (MapgenV7Params *)params->sparams;
this->spflags = sp->spflags;