mirror of https://github.com/OpenTTD/OpenTTD
(svn r24948) -Codechange: Do not assume CA_BUS and CA_TRUCK to be equal, instead let the compiler optimize the code if that is the case. (ComLock)
parent
4a9e5aa0f2
commit
24fd67f9d6
|
@ -957,7 +957,7 @@ struct BuildRoadStationWindow : public PickerWindowBase {
|
||||||
{
|
{
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
|
|
||||||
int rad = _settings_game.station.modified_catchment ? CA_TRUCK /* = CA_BUS */ : CA_UNMODIFIED;
|
int rad = _settings_game.station.modified_catchment ? ((this->window_class == WC_BUS_STATION) ? CA_BUS : CA_TRUCK) : CA_UNMODIFIED;
|
||||||
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