From 4e3714b391bea40e2f8e08918abef8732775662f Mon Sep 17 00:00:00 2001 From: matthijs Date: Thu, 23 Mar 2006 17:49:50 +0000 Subject: [PATCH] (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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npf.c b/npf.c index c6d01591ac..70e6ed9472 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. */