mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-02 07:35:08 +02:00
overhaul worldgen
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user