mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix station catchment increase with new picker window
This commit is contained in:
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…
Reference in New Issue
Block a user