summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-01 14:58:27 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-01 14:58:27 +0000
commit0ecd922df400531210814ff514e2006ca9a29eec (patch)
treec816ea9d6c062914a2c9819b77679966ce90b7aa
parenta0b918ebfe233d57e776d3d4a4ddd9bfba01900b (diff)
downloadopenttd-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.c2
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);