summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.c b/src/game.c
index 1c86c73..6addee3 100644
--- a/src/game.c
+++ b/src/game.c
@@ -10,7 +10,7 @@
#include <curses.h>
#include <sys/types.h>
#include "ui.h"
-#include "global.h"
+#include "data_store.h"
#include "net/comm.h"
#include "net/client.h"
#include "net/server.h"
@@ -102,7 +102,7 @@ void start_game(const bool servermode, const char* addr, const char* port)
srand(time(0)); // Initialize RNG
- data_store* data = datamodel();
+ data_store_t *data = data_store();
server_sock = server_start(port);
server_get_players(server_sock, &client_socks, num_players);
@@ -130,7 +130,7 @@ void start_game(const bool servermode, const char* addr, const char* port)
sleep(1); // TODO make sure server process is listening
sock = client_connect_server(addr, port);
- data_store* data = datamodel();
+ data_store_t *data = data_store();
strncpy(data->nickname, "nickname", 10);
net_send(sock, msg_type_hello, NULL);