Tidy the Rail and Transit ride fixes after review

- A train first seen standing takes its direction from the operator's
  course, not from a course drawn out of GPS jitter.
- Moving a hold to another vehicle releases the first one the same way as
  ending the hold.
- repaint always goes through placeSample, which hides the held vehicle and
  puts it on its current segment, so setShown is no longer exported.
- Tests cover the icon right after a hold, a segment with one known floor,
  a known floor at 0 m and selection by click after the layer comes back;
  shared helpers replace repeated setup.
- Comments, CURRENT-STATE and the release note say what the code does
  without internal figures.
This commit is contained in:
German Khokhlov committed 2026-11-18 15:07:06 +04:00
1 parent ee5a6ab317
commit df4d76384c
8 files changed
+209 -90

No files matched your search

@@ -1,8 +1,5 @@
- Fix rides on a Rail train or Transit vehicle for an application's Cockpit
subjects. A held parked vehicle no longer leaves its icon drawn under the
view, and turning Transit off ends a hold, so the vehicle shows again when
the layer is back on. A train or vehicle drawn on the ellipsoid while no
floor is known reports no height, so the view waits for the ground instead
of standing on the ellipsoid. A train standing at a platform keeps the way
it runs: GPS jitter of a few metres no longer turns the ride around
- Fix application Cockpit rides on Rail trains and Transit vehicles: a held
parked vehicle no longer leaves its icon under the view, turning Transit off
ends a hold, a view waits for the ground instead of standing on the
ellipsoid, and GPS jitter at a platform no longer turns a ride around
(German, @gekh, #1786).