overhaul worldgen

This commit is contained in:
p2r3
2025-08-16 16:15:33 +03:00
parent d36416cd2b
commit 7a3e2b5fa2
5 changed files with 126 additions and 51 deletions

View File

@@ -116,6 +116,13 @@ uint32_t fast_rand () {
return rng_seed;
}
uint64_t splitmix64 (uint64_t state) {
uint64_t z = state + 0x9e3779b97f4a7c15;
z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9;
z = (z ^ (z >> 27)) * 0x94d049bb133111eb;
return z ^ (z >> 31);
}
int client_states[MAX_PLAYERS * 2];
void setClientState (int client_fd, int new_state) {