diff options
author | paramat <paramat@users.noreply.github.com> | 2017-11-18 20:37:00 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-11-19 00:25:39 +0000 |
commit | 4b553ece09908dfdee59e9841fdc9420350eda9f (patch) | |
tree | 9e40dbc3725fd8e19eb163ed2198641cbd384817 /src/mapgen/mg_ore.h | |
parent | c655984849d69e83f0221ff9fbf6ce3782be873f (diff) | |
download | minetest-4b553ece09908dfdee59e9841fdc9420350eda9f.tar.gz minetest-4b553ece09908dfdee59e9841fdc9420350eda9f.tar.bz2 minetest-4b553ece09908dfdee59e9841fdc9420350eda9f.zip |
Stratum ore: Add option for a constant thickness stratum
Add a 'stratum thickness' integer parameter, as an alternative
to providing a 2nd noise parameter for thickness variation.
Diffstat (limited to 'src/mapgen/mg_ore.h')
-rw-r--r-- | src/mapgen/mg_ore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen/mg_ore.h b/src/mapgen/mg_ore.h index e715f348b..2bbc8c578 100644 --- a/src/mapgen/mg_ore.h +++ b/src/mapgen/mg_ore.h @@ -35,6 +35,7 @@ class MMVManip; #define OREFLAG_PUFF_CLIFFS 0x02 #define OREFLAG_PUFF_ADDITIVE 0x04 #define OREFLAG_USE_NOISE 0x08 +#define OREFLAG_USE_NOISE2 0x10 enum OreType { ORE_SCATTER, @@ -139,6 +140,7 @@ public: NoiseParams np_stratum_thickness; Noise *noise_stratum_thickness = nullptr; + u16 stratum_thickness; OreStratum() = default; virtual ~OreStratum(); |