(svn r1535) -Fix: bah, I hate to be wrong.. oh, euh, wrong copy/paste from TPFMode 1
authortruelight
Sun, 16 Jan 2005 11:18:17 +0000
changeset 1034 ff54f189424b
parent 1033 d7eac041c97f
child 1035 0a170deb6e33
(svn r1535) -Fix: bah, I hate to be wrong.. oh, euh, wrong copy/paste from TPFMode 1
pathfind.c
--- a/pathfind.c	Sun Jan 16 11:04:45 2005 +0000
+++ b/pathfind.c	Sun Jan 16 11:18:17 2005 +0000
@@ -145,7 +145,7 @@
 	tile = TILE_MASK(tile + TileOffsByDir(direction));
 
 	/* Check in case of rail if the owner is the same */
-	if (IS_TILETYPE(tile, MP_RAILWAY) && tpf->tracktype == TRANSPORT_RAIL) {
+	if (tpf->tracktype == TRANSPORT_RAIL) {
 		if ((IS_TILETYPE(tile, MP_RAILWAY) || IS_TILETYPE(tile, MP_STATION) || IS_TILETYPE(tile, MP_TUNNELBRIDGE)))
 			/* Check if we are on the middle of a bridge (has no owner) */
 			if (!IS_TILETYPE(tile, MP_TUNNELBRIDGE) || (_map5[tile] & 0xC0) != 0xC0)