Skip to content

Commit 36327c4

Browse files
removed the check on first and last wagon as it will block too many activities
1 parent 36d87c3 commit 36327c4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Source/Orts.Simulation/Simulation/Activity.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,11 +1398,7 @@ private Train matchesConsistNoOrder(List<string> wagonIdList)
13981398
}
13991399
if (nWagonListCars == wagonIdList.Count)
14001400
{
1401-
if (((wagonIdList[0] == trainItem.Cars[0].CarID) && (wagonIdList[wagonIdList.Count - 1] == trainItem.Cars[trainItem.Cars.Count - 1].CarID)) ||
1402-
((wagonIdList[0] == trainItem.Cars[trainItem.Cars.Count - 1].CarID) && (wagonIdList[wagonIdList.Count - 1] == trainItem.Cars[0].CarID)))
1403-
{
1404-
return trainItem;
1405-
}
1401+
return trainItem;
14061402
}
14071403
}
14081404
}

0 commit comments

Comments
 (0)