From 16555337558b3d4bd2b656c2c895155e3063611e Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Mon, 31 Jan 2011 19:02:08 +0100 Subject: First implementation of dgamelaunch mode. --- src/ui.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 735621f..3537c1b 100644 --- a/src/ui.c +++ b/src/ui.c @@ -256,9 +256,9 @@ void ui_display_wnd_stack_points(const table_stacks_t *ts, const bool highlight, * @param[in] num_players The number of players to show a player name and open card for * @param[in] highlight If true, a player in the player table will be highlighted * @param[in] highlighted_player The player to highlight - * @param[in] score The players score + * @param[in] score The players score. Will be displayed if >= 0. */ -void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_players, const bool highlight, const player_id_t highlighted_player, const uint32_t score) +void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_players, const bool highlight, const player_id_t highlighted_player, const int32_t score) { assert(pl != NULL); uint8_t pos = 0; @@ -266,7 +266,8 @@ void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_pla werase(w_current_state); wattron(w_current_state, A_BOLD); mvwprintw(w_current_state, 0, 0, "Current state:"); - mvwprintw(w_current_state, 0, 22, "Your Score: %3d", score); + if (score >= 0) + mvwprintw(w_current_state, 0, 22, "Your Score: %3d", score); wattroff(w_current_state, A_BOLD); mvwprintw(w_current_state, 1, 1, "Player Card"); mvwprintw(w_current_state, 1, 22, "Player Card"); @@ -435,10 +436,12 @@ void ui_display_wnd_final_scores(const player_list_t *pl, const uint8_t num_play wrefresh(w_final_scores); +#ifndef OXEN_DGLSERVER int key; do { key = wgetch(w_final_scores); } while (KEY_RETURN != key && KEY_ESCAPE != key); +#endif // !OXEN_DGLSERVER } /** -- cgit v1.2.3