(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)
authormatthijs
Thu, 23 Mar 2006 17:49:50 +0000
changeset 3309 dc08a15ad54e
parent 3308 287d8e862ddf
child 3310 7339b2b1e957
(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)
npf.c
--- a/npf.c	Thu Mar 23 17:38:31 2006 +0000
+++ b/npf.c	Thu Mar 23 17:49:50 2006 +0000
@@ -563,6 +563,8 @@
 			} 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. */