summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-31 19:14:17 +0000
committercelestar <celestar@openttd.org>2006-03-31 19:14:17 +0000
commitca0c73e4ead08a8f8d3c7e82f4241a008e3de252 (patch)
treed7fb6179a1894d3b78b910e15028560734fa130f
parent2ab5b8e666d14df7437bfa01a78f7ade3af69fa5 (diff)
downloadopenttd-ca0c73e4ead08a8f8d3c7e82f4241a008e3de252.tar.xz
(svn r4216) -Fix: Fixed revision 4214, did a bad error there. Thanks MiHaMiX for pointing it out
-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: