summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-03-08 19:54:10 +0000
committermatthijs <matthijs@openttd.org>2005-03-08 19:54:10 +0000
commit6a5495f83c431b4b12dc0e5ce4406571aa524577 (patch)
tree7d68f4e80ab28c8986de0bee20322d0bddcad0c9 /settings.c
parentb13879675fb97469e1a9aa883ef0965bfecee2e4 (diff)
downloadopenttd-6a5495f83c431b4b12dc0e5ce4406571aa524577.tar.xz
(svn r1963) - Add: [NPF] Penalty for a red signal that is the last signal on the path.
- Add: [NPF] NPFGetFlag() and NPFSetFlag() to wrap NPF node flag handling
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index f82508440..ebd2eea3c 100644
--- a/settings.c
+++ b/settings.c
@@ -933,6 +933,13 @@ const SettingDesc patch_settings[] = {
* sure), so we set the default penalty at 10 (the station tile
* penalty will further prevent this */
{"npf_rail_firstred_penalty", SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH), &_patches.npf_rail_firstred_penalty, NULL},
+ /* This penalty is for when the last signal before the target is red.
+ * This is useful for train stations, where there are multiple
+ * platforms to choose from, which lie in different signal blocks.
+ * Every target in a occupied signal block (ie an occupied platform)
+ * will get this penalty.
+ */
+ {"npf_rail_lastred_penalty", SDT_UINT32, (void*)(10 * NPF_TILE_LENGTH), &_patches.npf_rail_lastred_penalty, NULL},
/* When a train plans a route over a station tile, this penalty is
* applied. We want that trains plan a route around a typical, 4x5
* station, which means two tiles to the right, and two tiles back to