diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-06-03 08:59:07 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2015-06-18 07:05:22 +0100 |
commit | e45ecad3ab401e169d1c8c9ba9448360b215b3e5 (patch) | |
tree | 37ee377eb171a4aeec150bc846db374f982705e1 /src/mapgen.cpp | |
parent | 2da150378039371761b2f8d1a13036382228e248 (diff) | |
download | minetest-e45ecad3ab401e169d1c8c9ba9448360b215b3e5.tar.gz minetest-e45ecad3ab401e169d1c8c9ba9448360b215b3e5.tar.bz2 minetest-e45ecad3ab401e169d1c8c9ba9448360b215b3e5.zip |
Biome API: Add noise defined biome blend
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 7965730e4..d1171e29d 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -445,7 +445,9 @@ void MapgenParams::load(const Settings &settings) settings.getS16NoEx("chunksize", chunksize); settings.getFlagStrNoEx("mg_flags", flags, flagdesc_mapgen); settings.getNoiseParams("mg_biome_np_heat", np_biome_heat); + settings.getNoiseParams("mg_biome_np_heat_blend", np_biome_heat_blend); settings.getNoiseParams("mg_biome_np_humidity", np_biome_humidity); + settings.getNoiseParams("mg_biome_np_humidity_blend", np_biome_humidity_blend); delete sparams; sparams = EmergeManager::createMapgenParams(mg_name); @@ -462,7 +464,9 @@ void MapgenParams::save(Settings &settings) const settings.setS16("chunksize", chunksize); settings.setFlagStr("mg_flags", flags, flagdesc_mapgen, (u32)-1); settings.setNoiseParams("mg_biome_np_heat", np_biome_heat); + settings.setNoiseParams("mg_biome_np_heat_blend", np_biome_heat_blend); settings.setNoiseParams("mg_biome_np_humidity", np_biome_humidity); + settings.setNoiseParams("mg_biome_np_humidity_blend", np_biome_humidity_blend); if (sparams) sparams->writeParams(&settings); |