diff options
author | KUDr <kudr@openttd.org> | 2006-06-08 17:31:03 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-06-08 17:31:03 +0000 |
commit | c7d1e2eab54541b806949d269a688e780d584d1a (patch) | |
tree | d2093663de24fcd49aa10e5113cd3a28d2e39428 /settings.c | |
parent | 0b3e83a2fb4fa026de701ca0b038a6541c4d34c8 (diff) | |
download | openttd-c7d1e2eab54541b806949d269a688e780d584d1a.tar.xz |
(svn r5169) - CodeChange: [YAPF] RVs now use YAPF_TILE_LENGTH as base unit and 2 configurable settings (slope and crossing penalties) for cost calculation
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.c b/settings.c index 9f23396b5..919333672 100644 --- a/settings.c +++ b/settings.c @@ -1412,6 +1412,9 @@ const SettingDesc _patch_settings[] = { SDT_CONDVAR (Patches, yapf.rail_longer_platform_per_tile_penalty, SLE_UINT, 28, SL_MAX_VERSION,NS, 0, 0 * YAPF_TILE_LENGTH, 0, 20000, STR_NULL, NULL), SDT_CONDVAR (Patches, yapf.rail_shorter_platform_penalty, SLE_UINT, 28, SL_MAX_VERSION,NS, 0, 40 * YAPF_TILE_LENGTH, 0, 20000, STR_NULL, NULL), SDT_CONDVAR (Patches, yapf.rail_shorter_platform_per_tile_penalty, SLE_UINT, 28, SL_MAX_VERSION,NS, 0, 0 * YAPF_TILE_LENGTH, 0, 20000, STR_NULL, NULL), + // road vehicles - penalties + SDT_CONDVAR (Patches, yapf.road_slope_penalty , SLE_UINT, 28, SL_MAX_VERSION,NS, 0, 2 * YAPF_TILE_LENGTH, 0, 1000000, STR_NULL, NULL), + SDT_CONDVAR (Patches, yapf.rail_crossing_penalty , SLE_UINT, 28, SL_MAX_VERSION,NS, 0, 3 * YAPF_TILE_LENGTH, 0, 1000000, STR_NULL, NULL), SDT_END() }; |