From 7048438227fc4b3994cf527e6d20015b35175402 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 13 May 2006 11:24:15 +0000 Subject: (svn r4859) - Pathfinder: fix issue with train pathfinding over level crossings. --- pathfind.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pathfind.c b/pathfind.c index 799e23d58..fd27379ad 100644 --- a/pathfind.c +++ b/pathfind.c @@ -734,8 +734,7 @@ start_at: // Check that the tile contains exactly one track if (bits == 0 || KILL_FIRST_BIT(bits) != 0) break; - if ((IsTileType(tile, MP_STREET) && !HASBIT(tpf->railtypes, GetRailTypeCrossing(tile))) || - !HASBIT(tpf->railtypes, GetRailType(tile))) { + if (IsTileType(tile, MP_STREET) ? !HASBIT(tpf->railtypes, GetRailTypeCrossing(tile)) : !HASBIT(tpf->railtypes, GetRailType(tile))) { bits = 0; break; } -- cgit v1.2.3-70-g09d2