diff options
author | zuu <zuu@openttd.org> | 2013-01-28 22:21:29 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2013-01-28 22:21:29 +0000 |
commit | 24fd67f9d649bdb00da39cca7b4c641c89e55f3f (patch) | |
tree | 9d2f4087186ee984fdd822f5342d4fd7b9fcd0f5 | |
parent | 4a9e5aa0f218ad0702217f3d6042ba7dc79156d1 (diff) | |
download | openttd-24fd67f9d649bdb00da39cca7b4c641c89e55f3f.tar.xz |
(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)
-rw-r--r-- | src/road_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 1d176534c..bf4ef40d1 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -957,7 +957,7 @@ struct BuildRoadStationWindow : public PickerWindowBase { { 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) { SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); } else { |