From e06f48070f30f11f63166e435aa96ae659ca6762 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 15 Jul 2011 21:15:44 +1000 Subject: [PATCH] Move the closing of two windows to process_move() --- src/game.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/game.c b/src/game.c index 9c3f859..53fb7c5 100644 --- a/src/game.c +++ b/src/game.c @@ -885,7 +885,8 @@ void select_moves (void) points to the current player; quit_selected and/or abort_game may be true (if so, get_move() justs returns without waiting for the player to select a move). On exit, selection contains the choice made by the - player. + player. Note that two windows (the "Select move" window and the galaxy + map window) are left on the screen: they are closed in process_move(). */ void get_move (void) @@ -1027,10 +1028,6 @@ void get_move (void) selection = SEL_NONE; } } - - deltxwin(); // "Select move" window - deltxwin(); // Galaxy map window - txrefresh(); } void process_move (void) @@ -1039,6 +1036,10 @@ void process_move (void) if (selection == SEL_QUIT) { quit_selected = true; } + + deltxwin(); // "Select move" window + deltxwin(); // Galaxy map window + txrefresh(); } void exchange_stock (void)