From b2ca9b477856cd8ea284389b91d718e8ea814d7b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 16 May 2024 14:13:12 +0200 Subject: hurt feedback --- src/game.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 6081df1..de62746 100644 --- a/src/game.c +++ b/src/game.c @@ -107,8 +107,13 @@ void load_map() { pathfinding_init(); - thread t = thread_start(pathfinding_thread, 0); - thread_detach(&t); + // TODO: only need this on server? + thread t1 = thread_start(pathfinding_thread, 0); + thread_detach(&t1); + thread t2 = thread_start(pathfinding_thread, 0); + thread_detach(&t2); + thread t3 = thread_start(pathfinding_thread, 0); + thread_detach(&t3); log_info("STATE: GAMESTATE_LOADING_ASSETS"); global_state.state = GAMESTATE_LOADING_ASSETS; @@ -148,6 +153,7 @@ static void rotate_user(platform_window* window, protocol_user_look *message) { log_info("Unknown user rotated"); return; } + if (p->interact_state == INTERACT_DEAD) return; p->gunx = p->playerx + message->gunx; p->guny = p->playery - 0.5f + message->guny; -- cgit v1.2.3-70-g09d2