diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-13 11:24:15 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-13 11:24:15 +0000 |
commit | 7048438227fc4b3994cf527e6d20015b35175402 (patch) | |
tree | 67e12938263d55e09918e27e1fec3c2a004a000c | |
parent | 56862a8997c6343d67b68d502035c1648cdd4c36 (diff) | |
download | openttd-7048438227fc4b3994cf527e6d20015b35175402.tar.xz |
(svn r4859) - Pathfinder: fix issue with train pathfinding over level crossings.
-rw-r--r-- | pathfind.c | 3 |
1 files changed, 1 insertions, 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; } |