changeset 3835:260dc0202591 draft

(svn r4859) - Pathfinder: fix issue with train pathfinding over level crossings.
author peter1138 <peter1138@openttd.org>
date Sat, 13 May 2006 11:24:15 +0000
parents 70976113058f
children 8a2a3b823a81
files pathfind.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pathfind.c
+++ b/pathfind.c
@@ -734,8 +734,7 @@
 				// 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;
 				}