From 91a59bfd97482170445bdc006043160108ec228a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 1 Jan 2007 14:58:27 +0000 Subject: (svn r7717) -Fix (runknown): When following path for signals, don't skip back to the previous tile, as for tunnels & bridge ends the entering direction is wrong. --- pathfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathfind.c b/pathfind.c index 97c5e3521..c4703026d 100644 --- a/pathfind.c +++ b/pathfind.c @@ -341,8 +341,8 @@ static void TPFMode1(TrackPathFinder* tpf, TileIndex tile, DiagDirection directi if (tpf->hasbit_13) return; - tile = tile_org; direction = ReverseDiagDir(direction); + tile += TileOffsByDiagDir(direction); bits = GetTileTrackStatus(tile, tpf->tracktype); bits |= (bits >> 8); -- cgit v1.2.3-70-g09d2