(svn r4859) - Pathfinder: fix issue with train pathfinding over level crossings.

This commit is contained in:
peter1138 2006-05-13 11:24:15 +00:00
parent 56862a8997
commit 7048438227
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}