(svn r7717) -Fix (runknown): When following path for signals, don't skip back to the
authorpeter1138
Mon, 01 Jan 2007 14:58:27 +0000
changeset 5707 73fc8891bebc
parent 5706 5a060b22feaa
child 5708 76382881636e
(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
--- 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);