summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index e5a34be..60540a8 100644
--- a/src/game.c
+++ b/src/game.c
@@ -40,6 +40,7 @@ void connect_to_server(char* ip, char* port) {
global_state.client->on_message = client_on_message_received;
if (global_state.server) {
+ player_id = 127001;
spawn_player(player_id, (network_client){0, false, 0, "Host"});
global_state.network_state = CONNECTED;
}