aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-29 21:44:52 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-29 21:44:52 -0500
commit0974337804bde705544b9d237df57f92d5ea5253 (patch)
tree1708b665f02f32f5f5fc34116708b3b90a567d21 /src/mapgen.h
parentca89e63b27a2548a7615fcf4943c22f88818f6eb (diff)
downloadminetest-0974337804bde705544b9d237df57f92d5ea5253.tar.gz
minetest-0974337804bde705544b9d237df57f92d5ea5253.tar.bz2
minetest-0974337804bde705544b9d237df57f92d5ea5253.zip
Mapgen: Use getBlockSeed2() for blockseeds (much better uniformity)
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 07202f9a2..aaa89d3bc 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -133,9 +133,11 @@ public:
u32 flags;
bool generating;
int id;
+
ManualMapVoxelManipulator *vm;
INodeDefManager *ndef;
+ u32 blockseed;
s16 *heightmap;
u8 *biomemap;
v3s16 csize;
@@ -146,6 +148,8 @@ public:
Mapgen(int mapgenid, MapgenParams *params, EmergeManager *emerge);
virtual ~Mapgen();
+ static u32 getBlockSeed(v3s16 p, int seed);
+ static u32 getBlockSeed2(v3s16 p, int seed);
s16 findGroundLevelFull(v2s16 p2d);
s16 findGroundLevel(v2s16 p2d, s16 ymin, s16 ymax);
void updateHeightmap(v3s16 nmin, v3s16 nmax);