Show station information in confirmation mode only if coverage area highlight is enabled, it will show incorrect info otherwise

This commit is contained in:
Sergii Pylypenko
2016-05-16 20:22:13 +03:00
parent d408d58b57
commit e94afe86c3
2 changed files with 5 additions and 3 deletions

View File

@@ -222,7 +222,9 @@ void ShowBuildConfirmationWindow()
w->SetDirty();
SetDirtyBlocks(0, 0, _screen.width, _screen.height); // I don't know what does this do, but it looks important
StationBuildInfoWindow::show();
if (_settings_client.gui.station_show_coverage) {
StationBuildInfoWindow::show();
}
}
/**

View File

@@ -295,8 +295,8 @@ struct GameOptionsWindow : Window {
}
break;
case WID_GO_BUTTON_SIZE_DROPDOWN: // Setup screenshot format dropdown
case WID_GO_TEXT_SIZE_DROPDOWN: // Setup screenshot format dropdown
case WID_GO_BUTTON_SIZE_DROPDOWN: // Dropdowns for size of all GUI elements and fonts
case WID_GO_TEXT_SIZE_DROPDOWN:
list = new DropDownList();
*selected_index = (widget == WID_GO_BUTTON_SIZE_DROPDOWN) ?
_settings_client.gui.min_button :