diff options
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 8aea4ee4d..0935136a2 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -592,9 +592,8 @@ static void RoadVehCheckTrainCrash(Vehicle *v) tile = v->tile; // Make sure it's a road/rail crossing - if (!IsTileType(tile, MP_STREET) || - (_map5[tile] & 0xF0) != 0x10) - return; + if (!IsTileType(tile, MP_STREET) || !IsLevelCrossing(tile)) + return; if (VehicleFromPos(tile, v, (VehicleFromPosProc*)EnumCheckRoadVehCrashTrain) != NULL) RoadVehCrash(v); |