summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-16 11:18:17 +0000
committertruelight <truelight@openttd.org>2005-01-16 11:18:17 +0000
commitd2643dc483abbd086441b126912f466127253b06 (patch)
tree86dd7fc71c8700dde08910cba78fe5783641c349
parentefecea001a6296728134a0605245ef412c46eae9 (diff)
downloadopenttd-d2643dc483abbd086441b126912f466127253b06.tar.xz
(svn r1535) -Fix: bah, I hate to be wrong.. oh, euh, wrong copy/paste from TPFMode 1
-rw-r--r--pathfind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathfind.c b/pathfind.c
index 337bdcff7..110be8ba2 100644
--- a/pathfind.c
+++ b/pathfind.c
@@ -145,7 +145,7 @@ static void TPFMode2(TrackPathFinder *tpf, uint tile, int direction)
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)