src/pathfind.cpp
changeset 6498 aff910a05c6e
parent 6338 0fb4f452873c
child 6298 c30fe89622df
equal deleted inserted replaced
6497:b7170a1ffb33 6498:aff910a05c6e
   784 				bits = TrackdirBitsToTrackBits((TrackdirBits)(ts & TRACKDIR_BIT_MASK));
   784 				bits = TrackdirBitsToTrackBits((TrackdirBits)(ts & TRACKDIR_BIT_MASK));
   785 
   785 
   786 				// Check that the tile contains exactly one track
   786 				// Check that the tile contains exactly one track
   787 				if (bits == 0 || KILL_FIRST_BIT(bits) != 0) break;
   787 				if (bits == 0 || KILL_FIRST_BIT(bits) != 0) break;
   788 
   788 
   789 				if (!HASBIT(tpf->railtypes, IsTileType(tile, MP_STREET) ? GetRailTypeCrossing(tile) : GetRailType(tile))) {
   789 				if (!HASBIT(tpf->railtypes, GetRailType(tile))) {
   790 					bits = TRACK_BIT_NONE;
   790 					bits = TRACK_BIT_NONE;
   791 					break;
   791 					break;
   792 				}
   792 				}
   793 
   793 
   794 				///////////////////
   794 				///////////////////