mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Biomes: Fix vertical biome blend
This commit is contained in:
parent
d86ea9cd3e
commit
19c993bc39
@ -139,7 +139,7 @@ Biome *BiomeManager::getBiomeFromNoiseOriginal(float heat, float humidity, v3s16
|
|||||||
}
|
}
|
||||||
|
|
||||||
mysrand(pos.Y + (heat + humidity) / 2);
|
mysrand(pos.Y + (heat + humidity) / 2);
|
||||||
if (biome_closest_blend &&
|
if (biome_closest_blend && dist_min_blend <= dist_min &&
|
||||||
myrand_range(0, biome_closest_blend->vertical_blend) >=
|
myrand_range(0, biome_closest_blend->vertical_blend) >=
|
||||||
pos.Y - biome_closest_blend->max_pos.Y)
|
pos.Y - biome_closest_blend->max_pos.Y)
|
||||||
return biome_closest_blend;
|
return biome_closest_blend;
|
||||||
@ -300,7 +300,7 @@ Biome *BiomeGenOriginal::calcBiomeFromNoise(float heat, float humidity, v3s16 po
|
|||||||
// blend.
|
// blend.
|
||||||
mysrand(pos.Y + (heat + humidity) / 2);
|
mysrand(pos.Y + (heat + humidity) / 2);
|
||||||
|
|
||||||
if (biome_closest_blend &&
|
if (biome_closest_blend && dist_min_blend <= dist_min &&
|
||||||
myrand_range(0, biome_closest_blend->vertical_blend) >=
|
myrand_range(0, biome_closest_blend->vertical_blend) >=
|
||||||
pos.Y - biome_closest_blend->max_pos.Y)
|
pos.Y - biome_closest_blend->max_pos.Y)
|
||||||
return biome_closest_blend;
|
return biome_closest_blend;
|
||||||
|
Loading…
Reference in New Issue
Block a user