changeset 1927 | 1181e7652e2f |
parent 1926 | 530480d14685 |
child 1935 | 164d58b9137c |
--- a/roadveh_cmd.c Tue Jun 07 18:13:49 2005 +0000 +++ b/roadveh_cmd.c Tue Jun 07 21:37:00 2005 +0000 @@ -592,9 +592,8 @@ 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);