diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-29 21:44:52 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-29 21:44:52 -0500 |
commit | 0974337804bde705544b9d237df57f92d5ea5253 (patch) | |
tree | 1708b665f02f32f5f5fc34116708b3b90a567d21 /src/mapgen_singlenode.cpp | |
parent | ca89e63b27a2548a7615fcf4943c22f88818f6eb (diff) | |
download | minetest-0974337804bde705544b9d237df57f92d5ea5253.tar.gz minetest-0974337804bde705544b9d237df57f92d5ea5253.tar.bz2 minetest-0974337804bde705544b9d237df57f92d5ea5253.zip |
Mapgen: Use getBlockSeed2() for blockseeds (much better uniformity)
Diffstat (limited to 'src/mapgen_singlenode.cpp')
-rw-r--r-- | src/mapgen_singlenode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_singlenode.cpp b/src/mapgen_singlenode.cpp index 8558b3b14..91cd9f2f6 100644 --- a/src/mapgen_singlenode.cpp +++ b/src/mapgen_singlenode.cpp @@ -78,6 +78,8 @@ void MapgenSinglenode::makeChunk(BlockMakeData *data) { v3s16 node_min = blockpos_min*MAP_BLOCKSIZE; v3s16 node_max = (blockpos_max+v3s16(1,1,1))*MAP_BLOCKSIZE-v3s16(1,1,1); + blockseed = getBlockSeed2(node_min, data->seed); + MapNode n_node(c_node); for (s16 z = node_min.Z; z <= node_max.Z; z++) |