summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pathfind.c3
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;
}