From d2c3f612b3d7b0071e98e589777d495ba45eafe4 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 29 Oct 2023 08:26:31 +0100 Subject: more sounds --- src/game.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index a9a91c1..ec1d3cd 100644 --- a/src/game.c +++ b/src/game.c @@ -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(); -- cgit v1.2.3-70-g09d2