diff options
Diffstat (limited to 'src/client_game_states.c')
| -rw-r--r-- | src/client_game_states.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client_game_states.c b/src/client_game_states.c index 3dd8d90..58e55db 100644 --- a/src/client_game_states.c +++ b/src/client_game_states.c @@ -1,11 +1,11 @@ #include "game_states.h" #include "net/comm.h" #include "ui.h" -#include "global.h" +#include "data_store.h" game_state_t state_client_wait_for_hand_cards(const int sock, const uint8_t round) { - data_store *d = datamodel(); + data_store_t *d = data_store(); if(round == 1) { @@ -24,7 +24,7 @@ game_state_t state_client_wait_for_hand_cards(const int sock, const uint8_t roun game_state_t state_client_select_open_card(const int sock) { - data_store *d = datamodel(); + data_store_t *d = data_store(); uint8_t open_card_idx; // Select open card @@ -43,7 +43,7 @@ game_state_t state_client_select_open_card(const int sock) game_state_t state_client_wait_for_open_cards(const int sock) { - data_store *d = datamodel(); + data_store_t *d = data_store(); net_recv(sock, msg_type_selected_card_all); player_list_sort_by_open_card(&d->player_list, d->player_list.count); // sort in ascending order @@ -57,7 +57,7 @@ game_state_t state_client_wait_for_open_cards(const int sock) game_state_t state_client_play_cards(const int sock, const uint8_t round) { #if 0 - data_store *d = datamodel(); + data_store_t *d = data_store(); uint8_t stack_idx; foreach(open_card) |
