diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-29 08:26:31 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-29 08:26:31 +0100 |
| commit | d2c3f612b3d7b0071e98e589777d495ba45eafe4 (patch) | |
| tree | e3084f2ac5ea942c41cb2878263a397b1eaa1b56 /src/game.c | |
| parent | f2522c04446bb4bd597a8625f9398e67ff957565 (diff) | |
more sounds
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -52,6 +52,7 @@ void connect_to_server(char* ip, char* port) { } void load_map() { + log_info("STATE: GAMESTATE_LOADING_MAP"); global_state.state = GAMESTATE_LOADING_MAP; outgoing_allocator = create_allocator(MAX_NETWORK_BUFFER_SIZE); @@ -71,12 +72,13 @@ void load_map() { thread t = thread_start(pathfinding_thread, 0); thread_detach(&t); - global_state.state = GAMESTATE_PLAYING; - log_info("Done loading map"); + log_info("STATE: GAMESTATE_LOADING_ASSETS"); + global_state.state = GAMESTATE_LOADING_ASSETS; } void init_game() { - global_state.state = IDLE; + log_info("STATE: GAMESTATE_IDLE"); + global_state.state = GAMESTATE_IDLE; global_state.network_state = DISCONNECTED; load_assets(); |
