summaryrefslogtreecommitdiff
path: root/npf.c
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
commit6d4e7d565da547888f0cf5a0fdff038924b3a9a4 (patch)
tree318acd2473c01be5d8c687486bf8f6a19d2911d4 /npf.c
parent27f9da4f20404b33cd16260288f4f390e04cef69 (diff)
downloadopenttd-6d4e7d565da547888f0cf5a0fdff038924b3a9a4.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)
Diffstat (limited to 'npf.c')
-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. */