diff options
author | matthijs <matthijs@openttd.org> | 2005-03-08 19:59:56 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-03-08 19:59:56 +0000 |
commit | aea57f2026725e8575c27a7671c3f012e2153dde (patch) | |
tree | 8c987666994b0ccd8a17a956af447380d10181c2 /npf.c | |
parent | 232e41f2ff867bd1281c76ec3037d11cb5db0e65 (diff) | |
download | openttd-aea57f2026725e8575c27a7671c3f012e2153dde.tar.xz |
(svn r1964) - Add: [NPF] Added a penalty
Diffstat (limited to 'npf.c')
-rw-r--r-- | npf.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -369,7 +369,10 @@ int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* parent) { cost += NPFSlopeCost(current); /* Check for turns */ - //TODO + if (current->direction != parent->path.node.direction) + cost += _patches.npf_rail_curve_penalty; + //TODO, with realistic acceleration, also the amount of straight track between + // curves should be taken into account, as this affects the speed limit. /* Check for occupied track */ //TODO |