summaryrefslogtreecommitdiff
path: root/src/mapgen_v7.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-06-19 00:17:03 +0100
committerparamat <mat.gregory@virginmedia.com>2015-06-20 04:16:17 +0100
commit70da8a940b054d0ad22168af47fed4b7c091914f (patch)
tree2153fd4c5f421a5a7374553c3863b65bbb590bda /src/mapgen_v7.cpp
parentd7190df07ec92067ab5f40086df84ab30994bf87 (diff)
downloadminetest-70da8a940b054d0ad22168af47fed4b7c091914f.tar.gz
minetest-70da8a940b054d0ad22168af47fed4b7c091914f.tar.bz2
minetest-70da8a940b054d0ad22168af47fed4b7c091914f.zip
Mapgen objects: Enable heatmap and humidmap for all biome api mapgens
Diffstat (limited to 'src/mapgen_v7.cpp')
-rw-r--r--src/mapgen_v7.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp
index 6e97c2c16..c32bf3882 100644
--- a/src/mapgen_v7.cpp
+++ b/src/mapgen_v7.cpp
@@ -59,8 +59,10 @@ MapgenV7::MapgenV7(int mapgenid, MapgenParams *params, EmergeManager *emerge)
this->ystride = csize.X;
this->zstride = csize.X * (csize.Y + 2);
- this->biomemap = new u8[csize.X * csize.Z];
- this->heightmap = new s16[csize.X * csize.Z];
+ this->biomemap = new u8[csize.X * csize.Z];
+ this->heightmap = new s16[csize.X * csize.Z];
+ this->heatmap = NULL;
+ this->humidmap = NULL;
this->ridge_heightmap = new s16[csize.X * csize.Z];
MapgenV7Params *sp = (MapgenV7Params *)params->sparams;
@@ -376,6 +378,9 @@ void MapgenV7::calculateNoise()
noise_heat->result[i] += noise_heat_blend->result[i];
noise_humidity->result[i] += noise_humidity_blend->result[i];
}
+
+ heatmap = noise_heat->result;
+ humidmap = noise_humidity->result;
//printf("calculateNoise: %dus\n", t.stop());
}