}
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) >=
pos.Y - biome_closest_blend->max_pos.Y)
return biome_closest_blend;
// blend.
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) >=
pos.Y - biome_closest_blend->max_pos.Y)
return biome_closest_blend;