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/client_game_states.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/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) |
