From 45a4c69842d76544084db9e8839df153bc7210d7 Mon Sep 17 00:00:00 2001 From: matthijs Date: Thu, 23 Mar 2006 17:52:08 +0000 Subject: [PATCH] (svn r4072) - Backport from trunk (4071): - 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npf.c b/npf.c index 6fba296174..22067a4d3a 100644 --- a/npf.c +++ b/npf.c @@ -548,6 +548,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. */