From 3bb9980d79f6b7b53a5352e0ac8351c6eb5c8c31 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Thu, 27 Jan 2011 23:19:46 +0100 Subject: Main stack has now 104 cards again :>. Final scores window can now be closed with return and escape keys. --- src/ui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index e6c0d63..04938c5 100644 --- a/src/ui.c +++ b/src/ui.c @@ -389,7 +389,11 @@ void ui_display_wnd_final_scores(const player_list_t *pl, const uint8_t num_play } wrefresh(w_final_scores); - while (KEY_RETURN != wgetch(w_final_scores)); + + int key; + do { + key = wgetch(w_final_scores); + } while (KEY_RETURN != key && KEY_ESCAPE != key); } uint8_t ui_choose_card(hand_t *h) -- cgit v1.2.3