summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elrail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elrail.c b/elrail.c
index 4d6d6eedc..0edc97d1c 100644
--- a/elrail.c
+++ b/elrail.c
@@ -101,7 +101,7 @@ static TrackBits GetRailTrackBitsUniversal(TileIndex t, byte *override)
}
}
case MP_STREET:
- if (!GetRoadType(t) == ROAD_CROSSING) return 0;
+ if (GetRoadType(t) != ROAD_CROSSING) return 0;
if (GetRailTypeCrossing(t) != RAILTYPE_ELECTRIC) return 0;
return GetCrossingRailBits(t);
case MP_STATION: