mirror of https://github.com/OpenTTD/OpenTTD
(svn r16788) -Fix: with modified_catchment off the build road station window would not display all possible cargos in the Accepts/Supplies lists
parent
024a2eeed5
commit
58ee544cff
|
@ -938,8 +938,8 @@ struct BuildRoadStationWindow : public PickerWindowBase {
|
||||||
{
|
{
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
|
|
||||||
|
int rad = _settings_game.station.modified_catchment ? CA_TRUCK /* = CA_BUS */ : CA_UNMODIFIED;
|
||||||
if (_settings_client.gui.station_show_coverage) {
|
if (_settings_client.gui.station_show_coverage) {
|
||||||
int rad = _settings_game.station.modified_catchment ? CA_TRUCK /* = CA_BUS */ : CA_UNMODIFIED;
|
|
||||||
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
|
||||||
} else {
|
} else {
|
||||||
SetTileSelectSize(1, 1);
|
SetTileSelectSize(1, 1);
|
||||||
|
@ -957,10 +957,10 @@ struct BuildRoadStationWindow : public PickerWindowBase {
|
||||||
|
|
||||||
int text_end = DrawStationCoverageAreaText(2, 147,
|
int text_end = DrawStationCoverageAreaText(2, 147,
|
||||||
(this->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
|
(this->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
|
||||||
3, false);
|
rad, false);
|
||||||
text_end = DrawStationCoverageAreaText(2, text_end + 4,
|
text_end = DrawStationCoverageAreaText(2, text_end + 4,
|
||||||
(this->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
|
(this->window_class == WC_BUS_STATION) ? SCT_PASSENGERS_ONLY : SCT_NON_PASSENGERS_ONLY,
|
||||||
3, true) + 4;
|
rad, true) + 4;
|
||||||
if (text_end > this->widget[BRSW_BACKGROUND].bottom) {
|
if (text_end > this->widget[BRSW_BACKGROUND].bottom) {
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
ResizeWindowForWidget(this, BRSW_BACKGROUND, 0, text_end - this->widget[BRSW_BACKGROUND].bottom);
|
ResizeWindowForWidget(this, BRSW_BACKGROUND, 0, text_end - this->widget[BRSW_BACKGROUND].bottom);
|
||||||
|
|
Loading…
Reference in New Issue