Fix station catchment increase with new picker window

pull/730/head
Jonathan G Rennison 1 month ago
parent 4f58a0f3c5
commit b3689e2cc0

@ -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);

@ -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 {

Loading…
Cancel
Save