Show station information in confirmation mode only if coverage area highlight is enabled, it will show incorrect info otherwise
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user