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
commit91a59bfd97482170445bdc006043160108ec228a (patch)
treec816ea9d6c062914a2c9819b77679966ce90b7aa
parent4caf8a8b176ba1d8ac9445480fd2372734b2e94e (diff)
downloadopenttd-91a59bfd97482170445bdc006043160108ec228a.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);