1
0
Fork 0

(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)

release/1.3
zuu 2013-01-28 22:21:29 +00:00
parent 4a9e5aa0f2
commit 24fd67f9d6
1 changed files with 1 additions and 1 deletions

View File

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