diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-29 20:36:53 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-29 20:36:53 +0100 |
| commit | c1d6cd7e2757636ae6faeee3b5d3f07627f74f18 (patch) | |
| tree | 1f2092d32adeea6d26490f6d471e592675ce2a6d | |
| parent | 42e141e029ceb24a9474c784a5b2e7c7a81edc51 (diff) | |
'Waiting for player to choose stack' is now only displayed if it is not our turn.
| -rw-r--r-- | src/client_game_states.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client_game_states.c b/src/client_game_states.c index 21b0bb6..7e80da2 100644 --- a/src/client_game_states.c +++ b/src/client_game_states.c @@ -135,8 +135,11 @@ game_state_t state_client_play_cards(const int sock) net_send(sock, msg_type_selected_stack_c, NULL); } - ui_display_wnd_messages("Waiting for player to choose stack", false); - ui_update(); + if (!our_turn) + { + ui_display_wnd_messages("Waiting for player to choose stack", false); + ui_update(); + } net_recv(sock, msg_type_selected_stack_s); ds->player_list.players[i].score += card_stack_get_points(&ds->table_stacks.stacks[ds->stack_index]); card_stack_replace(&ds->table_stacks.stacks[ds->stack_index], c); |
