forked from Mirrorlandia_minetest/minetest
Mapgen V6: Add flag to stop mud flow
This commit is contained in:
parent
676f34a02b
commit
a358c040f2
@ -47,6 +47,7 @@ FlagDesc flagdesc_mapgen[] = {
|
|||||||
{"v6_biome_blend", MGV6_BIOME_BLEND},
|
{"v6_biome_blend", MGV6_BIOME_BLEND},
|
||||||
{"flat", MG_FLAT},
|
{"flat", MG_FLAT},
|
||||||
{"nolight", MG_NOLIGHT},
|
{"nolight", MG_NOLIGHT},
|
||||||
|
{"v6_nomudflow", MGV6_NOMUDFLOW},
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#define MG_NOLIGHT 0x40
|
#define MG_NOLIGHT 0x40
|
||||||
#define MGV7_MOUNTAINS 0x80
|
#define MGV7_MOUNTAINS 0x80
|
||||||
#define MGV7_RIDGES 0x100
|
#define MGV7_RIDGES 0x100
|
||||||
|
#define MGV6_NOMUDFLOW 0x200
|
||||||
|
|
||||||
/////////////////// Ore generation flags
|
/////////////////// Ore generation flags
|
||||||
// Use absolute value of height to determine ore placement
|
// Use absolute value of height to determine ore placement
|
||||||
|
@ -439,7 +439,8 @@ void MapgenV6::makeChunk(BlockMakeData *data) {
|
|||||||
addDirtGravelBlobs();
|
addDirtGravelBlobs();
|
||||||
|
|
||||||
// Flow mud away from steep edges
|
// Flow mud away from steep edges
|
||||||
flowMud(mudflow_minpos, mudflow_maxpos);
|
if (!(flags & MGV6_NOMUDFLOW))
|
||||||
|
flowMud(mudflow_minpos, mudflow_maxpos);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user