diff options
author | rubidium <rubidium@openttd.org> | 2008-08-11 22:58:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-11 22:58:30 +0000 |
commit | c04ab6628be789da0775775fd55265fd64cd1381 (patch) | |
tree | 5e6fcd0851755e13adfbdb92a616440c26c4e51f /src/yapf/yapf_rail.cpp | |
parent | d0c1a989a4226cc06a50b1a8c95b9ca8f0b9599e (diff) | |
download | openttd-c04ab6628be789da0775775fd55265fd64cd1381.tar.xz |
(svn r14048) -Fix (r14019) [FS#2222]: Redo the check for reserved tracks properly this time. (michi_cc)
Diffstat (limited to 'src/yapf/yapf_rail.cpp')
-rw-r--r-- | src/yapf/yapf_rail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_rail.cpp b/src/yapf/yapf_rail.cpp index e4a29d78e..88fe70f80 100644 --- a/src/yapf/yapf_rail.cpp +++ b/src/yapf/yapf_rail.cpp @@ -223,7 +223,7 @@ public: inline void PfFollowNode(Node& old_node) { TrackFollower F(Yapf().GetVehicle(), Yapf().GetCompatibleRailTypes()); - if (F.Follow(old_node.GetLastTile(), old_node.GetLastTrackdir())) + if (F.Follow(old_node.GetLastTile(), old_node.GetLastTrackdir()) && F.MaskReservedTracks()) Yapf().AddMultipleNodes(&old_node, F); } |