Failure on attach / detach / transfer actions for player train
Bug #1929875 reported by
r.roeterdink
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
In Progress
|
Undecided
|
r.roeterdink |
Bug Description
In certain situations, the player train fails to proper perform attach, transfer or detach actions.
To post a comment you must log in.
For references between trains, the train variable Number is used.
However, for the player train this number is set to 0 at the moment that train is formed into the player train. To be able to use the original references, the variable OrgAINumber is set for the player train to its original Number.
However, checking this alternative number in case the player train is involved is not always done consistently and this can cause errors.
Solution is to change all references to use the OrgAINumber variable. This variable is set for all trains equal to the original Number, including for the player train.
By using OrgAINumber consistently for all trains the use of references is simplified and errors specific for player train can no longer occur.