diff options
author | matthijs <matthijs@openttd.org> | 2006-03-23 17:49:50 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2006-03-23 17:49:50 +0000 |
commit | 4e3714b391bea40e2f8e08918abef8732775662f (patch) | |
tree | 318acd2473c01be5d8c687486bf8f6a19d2911d4 | |
parent | da2ebf897d12f34ca496f4879f413ec48e7d9603 (diff) | |
download | openttd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. */ |