@@ -3237,14 +3237,15 @@ static bool TrainCheckIfLineEnds(Vehicle
GetRailDepotDirection(tile) == dir))) {
v->cur_speed = 0;
ReverseTrainDirection(v);
return false;
}
if ((ts &= (ts >> 16)) == 0) {
/* make a rail/road crossing red */
if (IsLevelCrossingTile(tile)) {
/* make a rail/road crossing red
* do not make crossing red behind depot the train is entering */
if (IsLevelCrossingTile(tile) && (GetRailTileType(v->tile) != RAIL_TILE_DEPOT || GetRailDepotDirection(v->tile) == dir)) {
if (!IsCrossingBarred(tile)) {
BarCrossing(tile);
SndPlayVehicleFx(SND_0E_LEVEL_CROSSING, v);
MarkTileDirtyByTile(tile);
Status change: