don't show tab image unless tab is shown in new ride window

This commit is contained in:
IntelOrca 2015-06-07 14:35:15 +01:00
parent b79bc68af9
commit 28a122ac5c
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ static void window_new_ride_draw_tab_image(rct_drawpixelinfo *dpi, rct_window *w
{
int widgetIndex = WIDX_TAB_1 + page;
if (!(w->disabled_widgets & (1LL << widgetIndex))) {
if (w->widgets[widgetIndex].type != WWT_EMPTY && !(w->disabled_widgets & (1LL << widgetIndex))) {
int frame = 0;
if (_window_new_ride_current_tab == page)
frame = w->frame_no / window_new_ride_tab_animation_divisor[page];