diff options
author | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
commit | dc77647ea4a2becac4eff3190970cb35671b0131 (patch) | |
tree | d480693e848eb121add7037faa150875d750cc98 /src/pathfind.cpp | |
parent | 26ee8f3ca10d1d277b5faaa8554b0a8305711664 (diff) | |
download | openttd-dc77647ea4a2becac4eff3190970cb35671b0131.tar.xz |
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r-- | src/pathfind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp index d26f0e041..8d201086d 100644 --- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -778,7 +778,7 @@ void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypes railtypes, DiagD tpf->enum_proc = enum_proc; tpf->tracktype = TRANSPORT_RAIL; tpf->railtypes = railtypes; - tpf->maxlength = min(_patches.pf_maxlength * 3, 10000); + tpf->maxlength = min(_settings.pf.opf.pf_maxlength * 3, 10000); tpf->nstack = 0; tpf->new_link = tpf->links; tpf->num_links_left = lengthof(tpf->links); |