aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-05-14 19:01:58 +0100
committerGitHub <noreply@github.com>2018-05-14 19:01:58 +0100
commita01a9ca24cf74434d3d9d558d50e24d7de514e03 (patch)
tree8bb257439a41e2f3195d98615131fb9ce1d73876 /src/mapgen
parent0cecc1d1a91e7e3b3b5dd8708b7b416d4b907425 (diff)
downloadminetest-a01a9ca24cf74434d3d9d558d50e24d7de514e03.tar.gz
minetest-a01a9ca24cf74434d3d9d558d50e24d7de514e03.tar.bz2
minetest-a01a9ca24cf74434d3d9d558d50e24d7de514e03.zip
Vertical biome blend: Tune PRNG seed for finer detail (#7329)
Diffstat (limited to 'src/mapgen')
-rw-r--r--src/mapgen/mg_biome.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen/mg_biome.cpp b/src/mapgen/mg_biome.cpp
index a6ee41179..42f762709 100644
--- a/src/mapgen/mg_biome.cpp
+++ b/src/mapgen/mg_biome.cpp
@@ -142,7 +142,7 @@ Biome *BiomeManager::getBiomeFromNoiseOriginal(float heat, float humidity, v3s16
}
}
- mysrand(pos.Y + (heat + humidity) / 2);
+ mysrand(pos.Y + (heat + humidity) * 0.9f);
if (biome_closest_blend && dist_min_blend <= dist_min &&
myrand_range(0, biome_closest_blend->vertical_blend) >=
pos.Y - biome_closest_blend->max_pos.Y)
@@ -302,7 +302,7 @@ Biome *BiomeGenOriginal::calcBiomeFromNoise(float heat, float humidity, v3s16 po
// Carefully tune pseudorandom seed variation to avoid single node dither
// and create larger scale blending patterns similar to horizontal biome
// blend.
- mysrand(pos.Y + (heat + humidity) / 2);
+ mysrand(pos.Y + (heat + humidity) * 0.9f);
if (biome_closest_blend && dist_min_blend <= dist_min &&
myrand_range(0, biome_closest_blend->vertical_blend) >=