Skip to content

Commit dc93f3b

Browse files
committed
Automatic merge of T1.6-rc7-43-ge3d1d75f9 and 14 pull requests
- Pull request #1086 at e10390b: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at 2e06f85: Automatic speed control - Pull request #1104 at 87cdd9f: Handle simple adhesion within the axle module - Pull request #1115 at 270f22f: Do not activate ETS switch if no suitable cars are attached - Pull request #1120 at ba3c47f: Automatically Calculate Friction Values if Missing - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1130 at 8ae6bb7: Fix F9 points to an incorrect car ID. - Pull request #1143 at 1ad59d7: Status in Work Orders popup set too fast - Pull request #1151 at 5e59187: fix: Do not allow non-ACE/DDS textures in content - Pull request #1152 at 66dfd09: fix: Clean up multiple issues with data logger - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1081 at 689494b: Brake cuts power unification - Pull request #1124 at fab5457: Built-in PBL2 brake controller - Pull request #1128 at 278d8ff: Particle Emitter Overhaul
16 parents 252d8d5 + e3d1d75 + e10390b + 2e06f85 + 87cdd9f + 270f22f + ba3c47f + 91d2d26 + 8ae6bb7 + 1ad59d7 + 5e59187 + 66dfd09 + 5845a1a + 689494b + fab5457 + 278d8ff commit dc93f3b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Source/Orts.Simulation/Simulation/Activity.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,13 +1325,13 @@ override public Boolean Triggered(Activity activity)
13251325
}
13261326
break;
13271327
case EventType.DropOffWagonsAtLocation:
1328-
// Dropping off of wagons should only count once disconnected from player train.
1329-
// A better name than DropOffWagonsAtLocation would be ArriveAtSidingWithWagons.
1330-
// To recognize the dropping off of the cars before the event is activated, this method is used.
1331-
if (atSiding(OriginalPlayerTrain.FrontTDBTraveller, OriginalPlayerTrain.RearTDBTraveller, this.SidingEnd1, this.SidingEnd2))
1332-
{
13331328
consistTrain = matchesConsistNoOrder(ChangeWagonIdList);
1334-
triggered = consistTrain != null;
1329+
if (consistTrain != null)
1330+
{
1331+
if (atSiding(consistTrain.FrontTDBTraveller, consistTrain.RearTDBTraveller, this.SidingEnd1, this.SidingEnd2))
1332+
{
1333+
triggered = true;
1334+
}
13351335
}
13361336
break;
13371337
case EventType.PickUpPassengers:
@@ -1392,10 +1392,10 @@ private Train matchesConsistNoOrder(List<string> wagonIdList)
13921392
{
13931393
nWagonListCars++;
13941394
}
1395-
if (nWagonListCars == trainItem.Cars.Count)
1396-
{
1397-
return trainItem;
1398-
}
1395+
}
1396+
if (nWagonListCars == trainItem.Cars.Count)
1397+
{
1398+
return trainItem;
13991399
}
14001400
}
14011401

0 commit comments

Comments
 (0)