summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 08:26:31 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-10-29 08:26:31 +0100
commitd2c3f612b3d7b0071e98e589777d495ba45eafe4 (patch)
treee3084f2ac5ea942c41cb2878263a397b1eaa1b56 /src/game.c
parentf2522c04446bb4bd597a8625f9398e67ff957565 (diff)
more sounds
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c8
1 files changed, 5 insertions, 3 deletions
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();