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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
zuu 12 years ago
parent 4a9e5aa0f2
commit 24fd67f9d6

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

Loading…
Cancel
Save