Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d84c8d8

Browse files
committed
Update Turntable Pools
1 parent 1852fcb commit d84c8d8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Source/Orts.Simulation/Simulation/Timetables/TTTurntable.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public TimetableTurntablePool(TimetableReader fileContents, ref int lineindex, S
183183
if (pathValid)
184184
{
185185
Train.TCRoutePath fullRoute = new Train.TCRoutePath(newPath, -2, 1, Simulatorref.Signals, -1, Simulatorref.Settings);
186-
187186
// if first element is end of track, remove it from path (path is defined outbound)
188187
Train.TCSubpathRoute usedRoute = fullRoute.TCRouteSubpaths[0];
189188
if (Simulatorref.Signals.TrackCircuitList[usedRoute.First().TCSectionIndex].CircuitType == TrackCircuitSection.TrackCircuitType.EndOfTrack)
@@ -1358,15 +1357,6 @@ override public Train.TCSubpathRoute SetPoolExit(TTTrain train, out int poolStor
13581357
train.PoolStorageIndex = poolStorageIndex = reqPool;
13591358
}
13601359
}
1361-
1362-
// if route is valid, set state for last section to approach moving table
1363-
// also add unit to storage as claim
1364-
if (newRoute != null)
1365-
{
1366-
newRoute.Last().MovingTableApproachPath = reqPath;
1367-
AddUnit(train, true);
1368-
StoragePool[poolStorageIndex].ClaimUnits.Add(train.Number);
1369-
}
13701360
return (newRoute);
13711361
}
13721362

0 commit comments

Comments
 (0)