diff options
author | peter1138 <peter1138@openttd.org> | 2007-01-01 14:58:27 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-01-01 14:58:27 +0000 |
commit | 0ecd922df400531210814ff514e2006ca9a29eec (patch) | |
tree | c816ea9d6c062914a2c9819b77679966ce90b7aa | |
parent | a0b918ebfe233d57e776d3d4a4ddd9bfba01900b (diff) | |
download | openttd-0ecd922df400531210814ff514e2006ca9a29eec.tar.xz |
(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.
-rw-r--r-- | pathfind.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |