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 | 6d4e7d565da547888f0cf5a0fdff038924b3a9a4 (patch) | |
tree | 318acd2473c01be5d8c687486bf8f6a19d2911d4 | |
parent | 27f9da4f20404b33cd16260288f4f390e04cef69 (diff) | |
download | openttd-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)
-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. */ |