From b681c9850564e3eab45fafc64fe252cc228c9fde Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Tue, 19 May 2015 18:04:58 +0100 Subject: [PATCH] Fix #1099. The middle news item was not being reset to empty as news update is not called when there is no news. Added in a reset when opening the bottom toolbar. --- src/windows/game_bottom_toolbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/windows/game_bottom_toolbar.c b/src/windows/game_bottom_toolbar.c index 3c8fabe69b..e76cdd5a5f 100644 --- a/src/windows/game_bottom_toolbar.c +++ b/src/windows/game_bottom_toolbar.c @@ -150,6 +150,10 @@ void window_game_bottom_toolbar_open() window->frame_no = 0; window_init_scroll_widgets(window); + // Reset the middle widget to not show by default. + // If it is required to be shown news_update will reshow it. + window_game_bottom_toolbar_widgets[WIDX_MIDDLE_OUTSET].type = WWT_EMPTY; + if(!gConfigInterface.rct1_colour_scheme) { window->colours[0] = 140;