summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 20:51:04 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 20:51:04 +0100
commit24a44e57ab9adbb353adac8b83c4441e7adb3751 (patch)
treeeeb3cfa750ec336012fa494673c814c20abf1a59 /src/game.c
parentf646069ca3baab4021e85de2ba19ce5f57e204fd (diff)
work
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game.c b/src/game.c
index 875a622..7bef631 100644
--- a/src/game.c
+++ b/src/game.c
@@ -18,7 +18,7 @@ void start_server(char* port) {
}
static u32 get_session_id() {
- u32 time = platform_get_time(TIME_NS, TIME_FULL);
+ u64 time = platform_get_time(TIME_NS, TIME_FULL);
return (((time * 2654435789U) + time) * 2654435789U) + platform_get_processid();
}
@@ -249,10 +249,9 @@ void update_game(platform_window* window) {
update_client(window);
}
-
if (global_state.network_state == CONNECTED) {
if (!global_state.server) {
- update_zombies_client(window);
+ update_zombies_client(window); // move to update_client?
}
take_player_input(window);