diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 09:05:07 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-25 09:05:07 +0100 |
| commit | f11615206afc02bdc911fed5828ab881e3046380 (patch) | |
| tree | a1d587c9387df0fbe159098b3fa4f24b50fd0a2f /src/game.c | |
| parent | 4d26111501a131173857a20eb7050bc1b5f8e04a (diff) | |
ui_display_wnd_current_state() has now optional highlighting of a player in the table and is able to display '-' if the player has not played an open card (This is used to display the window before the actual gameplay has begun).
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -104,7 +104,7 @@ static void main_loop_client(int sock) net_recv(sock, msg_type_selected_card_all); pnoc_sort(data->players.players, data->players.count); // sort in ascending order - ui_display_wnd_current_state(data->players.players, data->players.count, 0, 0); // TODO fix parameters + ui_display_wnd_current_state(data->players.players, data->players.count, true, 0, 0); // TODO fix parameters //state = STATE_CLIENT_PLAY_CARDS; //sleep(2); @@ -339,6 +339,7 @@ void start_game(const bool servermode, const char* addr, const char* port) // Display all windows ui_display_wnd_table_cards(&data->table_stacks, false, 0); ui_display_wnd_stack_points(&data->table_stacks, false, 0); + ui_display_wnd_current_state(data->players.players, data->players.count, false, 0, 0); ui_display_wnd_hand_cards(&data->hand, false, 0); main_loop_client(sock); |
