#include "client/client_map.h"
#include "client/client_player.h"
#include "util.h"
-#define MAX_BLOCK_REQUESTS 8
+#define MAX_BLOCK_REQUESTS 4
struct ClientMap client_map;
Client *client;
for (u8 z = 0; z < MAPBLOCK_SIZE; z++) {
v2s32 pos_horizontal = {pos_x, block_node_pos.z + z};
- s32 height = pnoise2d(U32(pos_horizontal.x) / 32.0, U32(pos_horizontal.y) / 32.0, 0.45, 5, seed + SO_HEIGHT) * 16.0 + 32;
+ s32 height = (pnoise2d(U32(pos_horizontal.x) / 32.0, U32(pos_horizontal.y) / 32.0, 0.45, 5, seed + SO_HEIGHT) * 16.0)
+ * (pnoise2d(U32(pos_horizontal.x) / 256.0, U32(pos_horizontal.y) / 256.0, 0.45, 5, seed + SO_HILLYNESS) * 0.5 + 0.5)
+ + 32;
f64 factor;
Biome biome = get_biome(pos_horizontal, &factor);