mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
Count the depot consist after writing it back, not before
The stats were read off the trainset before the edit was written into it, so the vehicle count and the rest lagged one change behind.
This commit is contained in:
@@ -224,9 +224,10 @@ public partial class Depot : UserControl
|
||||
(_consist.SelectedCar is null || !moved.Cars.Contains(_consist.SelectedCar)))
|
||||
_cards.Activate(moved);
|
||||
|
||||
// The stats are read off the trainset, so it is written back first.
|
||||
WriteBackToScenery();
|
||||
_details.Refresh();
|
||||
UpdateTrainStats();
|
||||
WriteBackToScenery();
|
||||
|
||||
// The cards are thrown away and rebuilt on every change, so a keyboard-driven
|
||||
// edit has to be handed its card back or focus escapes the strip.
|
||||
|
||||
Reference in New Issue
Block a user