diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 13:28:15 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 13:28:15 +0100 |
| commit | ec98567cc51fa1d559cf1fe076898b6537053499 (patch) | |
| tree | dfc07fa64a412f6ce1fa0701dc1ce5e9eacf82e7 /src/game.c | |
| parent | 52f95177eb8050f073a3d65413feb16cfce93baa (diff) | |
Minor changes. Renamed global.[ch] to data_store.[ch], data_store to data_store_t and datamodel() to data_store().
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
