summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2006-03-23 17:49:50 +0000
committermatthijs <matthijs@openttd.org>2006-03-23 17:49:50 +0000
commit4e3714b391bea40e2f8e08918abef8732775662f (patch)
tree318acd2473c01be5d8c687486bf8f6a19d2911d4
parentda2ebf897d12f34ca496f4879f413ec48e7d9603 (diff)
downloadopenttd-4e3714b391bea40e2f8e08918abef8732775662f.tar.xz
(svn r4071) - Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop. Small omission from r4023 (fix by glx)
-rw-r--r--npf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/npf.c b/npf.c
index c6d01591a..70e6ed947 100644
--- a/npf.c
+++ b/npf.c
@@ -563,6 +563,8 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
} else {
dst_tile = INVALID_TILE; /* Road vehicle heading inwards: dead end */
}
+ } else {
+ dst_tile = AddTileIndexDiffCWrap(src_tile, TileIndexDiffCByDir(exitdir));
}
} else {
/* This a normal tile, a bridge, a tunnel exit, etc. */