diff options
author | smatz <smatz@openttd.org> | 2009-06-25 15:42:03 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-25 15:42:03 +0000 |
commit | fa1ad0fd3c4bb20af746d5ee7588afcb0e5f8375 (patch) | |
tree | 30ddcbb431fa267add60ae492912185023e803a3 /src/table | |
parent | 8bc244d14e14b898bfaff8bb3ba23704a1168669 (diff) | |
download | openttd-fa1ad0fd3c4bb20af746d5ee7588afcb0e5f8375.tar.xz |
(svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/settings.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table/settings.h b/src/table/settings.h index a8bafd943..92a53e171 100644 --- a/src/table/settings.h +++ b/src/table/settings.h @@ -24,6 +24,7 @@ static int32 ConvertLandscape(const char *value); static int32 CheckNoiseToleranceLevel(const char *value); static bool CheckFreeformEdges(int32 p1); static bool ChangeDynamicEngines(int32 p1); +static bool StationCatchmentChanged(int32 p1); #ifdef ENABLE_NETWORK static bool UpdateClientName(int32 p1); @@ -398,7 +399,7 @@ const SettingDesc _settings[] = { SDT_BOOL(GameSettings, station.nonuniform_stations, 0,NN, true, STR_CONFIG_SETTING_NONUNIFORM_STATIONS, NULL), SDT_VAR(GameSettings, station.station_spread, SLE_UINT8, 0, 0, 12, 4, 64, 0, STR_CONFIG_SETTING_STATION_SPREAD, InvalidateStationBuildWindow), SDT_BOOL(GameSettings, order.serviceathelipad, 0, 0, true, STR_CONFIG_SETTING_SERVICEATHELIPAD, NULL), - SDT_BOOL(GameSettings, station.modified_catchment, 0, 0, true, STR_CONFIG_SETTING_CATCHMENT, NULL), + SDT_BOOL(GameSettings, station.modified_catchment, 0, 0, true, STR_CONFIG_SETTING_CATCHMENT, StationCatchmentChanged), SDT_CONDBOOL(GameSettings, order.gradual_loading, 40, SL_MAX_VERSION, 0, 0, true, STR_CONFIG_SETTING_GRADUAL_LOADING, NULL), SDT_CONDBOOL(GameSettings, construction.road_stop_on_town_road, 47, SL_MAX_VERSION, 0, 0, true, STR_CONFIG_SETTING_STOP_ON_TOWN_ROAD, NULL), SDT_CONDBOOL(GameSettings, construction.road_stop_on_competitor_road, 114, SL_MAX_VERSION, 0, 0, true, STR_CONFIG_SETTING_STOP_ON_COMPETITOR_ROAD,NULL), |