summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 4c91e4ab9..574d4afb5 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -568,7 +568,7 @@ static void RoadVehCheckTrainCrash(Vehicle *v)
tile = v->tile;
- if (!IsTileType(tile, MP_STREET) || !IsLevelCrossing(tile)) return;
+ if (!IsLevelCrossingTile(tile)) return;
if (VehicleFromPos(tile, v, EnumCheckRoadVehCrashTrain) != NULL)
RoadVehCrash(v);