mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-05 05:24:26 +01:00
Let Auto bring the back of the train to 0, hand-set or not
Auto now clears the hand-set marks before picking the couplers and is available on the last vehicle too.
This commit is contained in:
@@ -544,6 +544,18 @@ public sealed class Consist : IReadOnlyList<ConsistItem>
|
||||
Raise();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The Auto button: couplers picked afresh for the whole consist, hand-set ones
|
||||
/// included, so the back of the train is 0 again.
|
||||
/// </summary>
|
||||
public void AutoCouple()
|
||||
{
|
||||
foreach (var car in Flatten())
|
||||
car.CouplerSetByHand = false;
|
||||
|
||||
AutoConnectAll();
|
||||
}
|
||||
|
||||
public void AutoConnectAll()
|
||||
{
|
||||
var flat = Flatten();
|
||||
|
||||
Reference in New Issue
Block a user