diff options
author | paramat <paramat@users.noreply.github.com> | 2017-06-14 02:00:51 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-07-11 01:14:24 +0100 |
commit | 8299e4b67eff48e0f6e101afea2fae8f0e65c421 (patch) | |
tree | fed891f09468aca2b53c8ced933fb88de2a823c6 /src/mapgen.h | |
parent | ef285b2815962a7a01791059ed984cb12fdba4dd (diff) | |
download | minetest-8299e4b67eff48e0f6e101afea2fae8f0e65c421.tar.gz minetest-8299e4b67eff48e0f6e101afea2fae8f0e65c421.tar.bz2 minetest-8299e4b67eff48e0f6e101afea2fae8f0e65c421.zip |
Biomes/decorations/ores: Make relative to 'water_level' setting
Add 'biome_zero_level' argument to 'generateBiomes()', 'deco_zero_level'
argument to 'placeAllDecos()' and 'ore_zero_level' to 'placeAllOres()'
to allow mapgens to vertically shift the registered biomes, decorations
and ores per-mapchunk.
Will also allow many realm possibilities in future mapgens.
Diffstat (limited to 'src/mapgen.h')
-rw-r--r-- | src/mapgen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen.h b/src/mapgen.h index 7acceddaf..7f4b76c3e 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -251,7 +251,7 @@ public: virtual void generateCaves(s16 max_stone_y, s16 large_cave_depth); virtual bool generateCaverns(s16 max_stone_y); virtual void generateDungeons(s16 max_stone_y, MgStoneType stone_type); - virtual MgStoneType generateBiomes(); + virtual MgStoneType generateBiomes(s16 biome_zero_level = 0); virtual void dustTopNodes(); protected: |