# HG changeset patch # User peter1138 # Date 1167663507 0 # Node ID 6ae660a4f3a568ac2bfdc2171b98f2a6ad942a37 # Parent b3ceb5649239af2e5c7dcb7bae8c58d676de08cb (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. diff -r b3ceb5649239 -r 6ae660a4f3a5 pathfind.c --- a/pathfind.c Mon Jan 01 14:53:57 2007 +0000 +++ b/pathfind.c Mon Jan 01 14:58:27 2007 +0000 @@ -341,8 +341,8 @@ if (tpf->hasbit_13) return; - tile = tile_org; direction = ReverseDiagDir(direction); + tile += TileOffsByDiagDir(direction); bits = GetTileTrackStatus(tile, tpf->tracktype); bits |= (bits >> 8);