Fix station catchment increase with new picker window

This commit is contained in:
Jonathan G Rennison 2024-08-22 22:36:54 +01:00
parent 4f58a0f3c5
commit b3689e2cc0
2 changed files with 2 additions and 0 deletions

View File

@ -1322,6 +1322,7 @@ public:
} }
int rad = (_settings_game.station.modified_catchment) ? CA_TRAIN : CA_UNMODIFIED; int rad = (_settings_game.station.modified_catchment) ? CA_TRAIN : CA_UNMODIFIED;
rad += _settings_game.station.catchment_increase;
if (_settings_client.gui.station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); if (_settings_client.gui.station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);

View File

@ -1389,6 +1389,7 @@ public:
this->DrawWidgets(); this->DrawWidgets();
int rad = _settings_game.station.modified_catchment ? ((this->window_class == WC_BUS_STATION) ? CA_BUS : CA_TRUCK) : CA_UNMODIFIED; int rad = _settings_game.station.modified_catchment ? ((this->window_class == WC_BUS_STATION) ? CA_BUS : CA_TRUCK) : CA_UNMODIFIED;
rad += _settings_game.station.catchment_increase;
if (_settings_client.gui.station_show_coverage) { if (_settings_client.gui.station_show_coverage) {
SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
} else { } else {