forked from mirror/OpenTTD
(svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user