diff options
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -14,6 +14,7 @@ #include "net/comm.h" #include "net/client.h" #include "net/server.h" +#include "game_states.h" static void init_mainstack(card *stack, const uint32_t size) { @@ -62,7 +63,7 @@ static const uint8_t num_cards_in_stack(const card *stack, const uint32_t size) static void main_loop_client(int sock) { bool running = true; - gamestate state = STATE_CLIENT_WAIT_FOR_HAND_CARDS; + game_state_t state = STATE_CLIENT_WAIT_FOR_HAND_CARDS; uint8_t round = 1; data_store *data = datamodel(); uint8_t open_card_idx; @@ -176,7 +177,7 @@ static void main_loop_server(socket_list_t* client_socks) uint8_t round = 1; int cards = MAX_CARD - MIN_CARD + 1; card mainstack[cards]; - gamestate state = STATE_SERVER_DEAL_HAND_CARDS; + game_state_t state = STATE_SERVER_DEAL_HAND_CARDS; data_store *data = datamodel(); |
