mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 18:47:06 +01:00
0301c6e9cc
- keep_old_tracks() kept all the events on the first piece of an old track. The simulator fires event1 as a vehicle enters a track at its Point2, event2 at its Point1 and event0 while it stands on it (TrkFoll.cpp), so with a 120 m track cut into 40 and 80 m a train running towards Point1 got event1 about 80 m late, and one standing on the second piece no event0. Now each piece gets event0/eventall0, the piece at Point1 event2/eventall2 and the piece at Point2 event1/eventall1. The keywords are compared in any case, as the simulator lowers its tokens. - The joints of the old tracks kept their chainages through move_vertex, set_vertex, insert_vertex and remove_vertex: widening a 90° curve by 20 m shortens the line by about 8.6 m, and a joint past the new end was dropped, a short buffer-stop or signal track there with its name, events and circuit. Each joint now goes to the point of the new line nearest to where it was. solved_line::nearest() is shared with the crossover planner. - Sonar: the seeded generators of the takeover tests are marked (S2245), two dereferences after a REQUIRE too (S2259).