diff options
author | matthijs <matthijs@openttd.org> | 2005-07-03 13:02:54 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-07-03 13:02:54 +0000 |
commit | e675794812e11985365250a6a9990c0f162d0c7f (patch) | |
tree | 6d371024326a8ed726a5b94394047c888bd1a2c8 /settings.c | |
parent | 7ecc1a040ff7e6a7235dd783982e69f46e0ae1b6 (diff) | |
download | openttd-e675794812e11985365250a6a9990c0f162d0c7f.tar.xz |
(svn r2514) - Codechange: [NPF] Move the checking of railtype into a funciton IsCompatibleRail().
- Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails.
- Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138)
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/settings.c b/settings.c index d63662597..03d0abbe4 100644 --- a/settings.c +++ b/settings.c @@ -977,6 +977,8 @@ const SettingDesc patch_settings[] = { {"npf_water_curve_penalty", SDT_UINT32, (void*)(NPF_TILE_LENGTH / 4), &_patches.npf_water_curve_penalty, NULL}, /* This is the penalty for road, same as for rail. */ {"npf_road_curve_penalty", SDT_UINT32, (void*)(1), &_patches.npf_road_curve_penalty, NULL}, + /* This is the penalty for level crossings, for both road and rail vehicles */ + {"npf_crossing_penalty", SDT_UINT32, (void*)(3 * NPF_TILE_LENGTH), &_patches.npf_crossing_penalty, NULL}, {NULL, 0, NULL, NULL, NULL} }; |