diff options
author | kwolekr <kwolekr@minetest.net> | 2014-01-12 18:20:53 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-01-12 18:21:28 -0500 |
commit | a358c040f2d6d1fe6825121bf8ab57ceb5865cc9 (patch) | |
tree | 1e894130c334ab50d360e8fc2d4702d520cc7206 | |
parent | 676f34a02be17d898ea45b1b05be72bfcfcd588e (diff) | |
download | minetest-a358c040f2d6d1fe6825121bf8ab57ceb5865cc9.tar.gz minetest-a358c040f2d6d1fe6825121bf8ab57ceb5865cc9.tar.bz2 minetest-a358c040f2d6d1fe6825121bf8ab57ceb5865cc9.zip |
Mapgen V6: Add flag to stop mud flow
-rw-r--r-- | src/mapgen.cpp | 1 | ||||
-rw-r--r-- | src/mapgen.h | 1 | ||||
-rw-r--r-- | src/mapgen_v6.cpp | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 3d5c7b3cc..4433a2a58 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -47,6 +47,7 @@ FlagDesc flagdesc_mapgen[] = { {"v6_biome_blend", MGV6_BIOME_BLEND}, {"flat", MG_FLAT}, {"nolight", MG_NOLIGHT}, + {"v6_nomudflow", MGV6_NOMUDFLOW}, {NULL, 0} }; diff --git a/src/mapgen.h b/src/mapgen.h index feec60e19..aa66982c3 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -38,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #define MG_NOLIGHT 0x40 #define MGV7_MOUNTAINS 0x80 #define MGV7_RIDGES 0x100 +#define MGV6_NOMUDFLOW 0x200 /////////////////// Ore generation flags // Use absolute value of height to determine ore placement diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index 3e152861c..a27ca2e0a 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -439,7 +439,8 @@ void MapgenV6::makeChunk(BlockMakeData *data) { addDirtGravelBlobs(); // Flow mud away from steep edges - flowMud(mudflow_minpos, mudflow_maxpos); + if (!(flags & MGV6_NOMUDFLOW)) + flowMud(mudflow_minpos, mudflow_maxpos); } |