diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 09:38:02 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 09:38:02 +0100 |
| commit | 8e05dde9c2f15c2a68039d64b15337f06ec0c1b7 (patch) | |
| tree | 14f7869b17500ea0a06b307250f14dfca8b63f08 /src/game.c | |
| parent | f11615206afc02bdc911fed5828ab881e3046380 (diff) | |
Remove chosen card from hand.
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -68,7 +68,6 @@ static void main_loop_client(int sock) uint8_t open_card_idx; uint8_t picked_stack_idx; - while(running) { switch(state) @@ -97,6 +96,10 @@ static void main_loop_client(int sock) // Send open card to server net_send(sock, msg_type_selected_card, NULL); + // Remove picked open card from hand + hand_remove_card(&data->hand, open_card_idx); + ui_display_wnd_hand_cards(&data->hand, false, 0); + state = STATE_CLIENT_WAIT_FOR_OPEN_CARDS; break; |
