pathfind.c
changeset 4081 8d4111a68f72
parent 4000 bab1ebc37da0
child 4344 5d0e40cd67b9
--- a/pathfind.c	Wed Jun 28 05:56:09 2006 +0000
+++ b/pathfind.c	Wed Jun 28 06:10:20 2006 +0000
@@ -756,7 +756,7 @@
 
 				/* Check the rail type only if the train is *NOT* on top of a bridge. */
 				if (!(IsBridgeTile(tile) && IsBridgeMiddle(tile) && GetBridgeAxis(tile) == DiagDirToAxis(direction))) {
-					if (IsTileType(tile, MP_STREET) ? !HASBIT(tpf->railtypes, GetRailTypeCrossing(tile)) : !HASBIT(tpf->railtypes, GetRailType(tile))) {
+					if (!HASBIT(tpf->railtypes, IsTileType(tile, MP_STREET) ? GetRailTypeCrossing(tile) : GetRailType(tile))) {
 						bits = 0;
 						break;
 					}