Code issues in HandleSharingChange
These are a couple of relatively minor issues to look at, in order to
perfect the sharing change code:
- Correctly set reservations for tunnels and bridges when removing a
train (they can have more than one train on them!)
- Update level crossings when removing trains, but not when another
nearby train should keep them closed.
- Avoid doing unnecessary work, or doing the same work twice, to save CPU time.
- The behaviour of crashed trains, also w.r.t. the first two points
Apart from this, a lot of testing is needed. Some debugging code to see the results of these tests may be helpful.
(svn r18636) -Codechange: make TextEffect::duration a value in ticks instead of ticks * 8