From 24fd67f9d649bdb00da39cca7b4c641c89e55f3f Mon Sep 17 00:00:00 2001 From: zuu Date: Mon, 28 Jan 2013 22:21:29 +0000 Subject: (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) --- src/road_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3-70-g09d2