17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 14:37:29 +01:00

feat(editor): a switch being placed slides along its straight first, so its branch lies on the line of the track it leads into (a straight between, or an arc of the switch radius right after it with the arc ending at the track's end); only when the slide leaves the straight it stays put and reverse curves fill in; the straight between reverse curves takes the speed of the switch's branch (R<300 40, <500 50, <760 60, <1200 80, <2500 100 km/h) instead of the track's

This commit is contained in:
maj00r
2026-10-12 00:25:01 +02:00
parent d4d2a02018
commit b27d1772a7
5 changed files with 81 additions and 9 deletions

View File

@@ -1132,6 +1132,7 @@ class editor_mode : public application_mode, private editor_track::observer
double along{0.0};
int forward{1};
int side{1};
double moved{0.0};
std::vector<segment_data> paths;
std::string reason;
};