diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 14:13:12 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 14:13:12 +0200 |
| commit | b2ca9b477856cd8ea284389b91d718e8ea814d7b (patch) | |
| tree | de4c841391f9fd80e86358f25660936777d94bbb /src/game.c | |
| parent | 07eb16ba4602c41de86236e0870c757da3bfb5d6 (diff) | |
hurt feedback
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; |
