diff options
author | KUDr <KUDr@openttd.org> | 2006-08-27 07:23:46 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-08-27 07:23:46 +0000 |
commit | 6f9276ed578336abf7b43b96404f6be82e9fe8f8 (patch) | |
tree | d46e216ab6a16f351ceffa9c175e99c32879e41a /yapf/yapf_road.cpp | |
parent | b46b818446d8b1e3784a971c47b8413942a41b56 (diff) | |
download | openttd-6f9276ed578336abf7b43b96404f6be82e9fe8f8.tar.xz |
(svn r6164) -Fix [YAPF]: Road vehicles preferring bends - added yapf.road_curve_penalty setting with default value 100 (=YAPF_TILE_LENGTH) that is saved only in MP games (mart3p)
Diffstat (limited to 'yapf/yapf_road.cpp')
-rw-r--r-- | yapf/yapf_road.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/yapf_road.cpp b/yapf/yapf_road.cpp index cb6233e0e..1b9000f13 100644 --- a/yapf/yapf_road.cpp +++ b/yapf/yapf_road.cpp @@ -57,7 +57,7 @@ protected: } } else { // non-diagonal trackdir - cost = YAPF_TILE_CORNER_LENGTH; + cost = YAPF_TILE_CORNER_LENGTH + Yapf().PfGetSettings().road_curve_penalty; } return cost; } |