From f11615206afc02bdc911fed5828ab881e3046380 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Tue, 25 Jan 2011 09:05:07 +0100 Subject: 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). --- src/game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 845f826..9ba1835 100644 --- a/src/game.c +++ b/src/game.c @@ -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); -- cgit v1.2.3