From 7825b92190fd015a259206d272c4e575aa683c0e Mon Sep 17 00:00:00 2001 From: maj00r Date: Sat, 3 Oct 2026 01:38:40 +0200 Subject: [PATCH] feat(editor): add R500 double slip --- editor/editorTrack.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/editor/editorTrack.cpp b/editor/editorTrack.cpp index 9b8981bc..739e7d2f 100644 --- a/editor/editorTrack.cpp +++ b/editor/editorTrack.cpp @@ -1287,13 +1287,12 @@ std::vector editor_track::standard_switch_templat {"Rz 1:26,5 R2500", 2500.0, 26.5, 0.0, 0.0}, }; std::vector result; - for (auto const radius : {190.0, 300.0}) + for (auto const &definition : {std::pair{190.0, "1:9"}, {300.0, "1:9"}, {500.0, "1:12"}}) { switch_template slip; slip.double_slip = true; - slip.radius = radius; - slip.ratio = 9.0; - slip.label = "Rkpd 1:9 R" + std::to_string(static_cast(radius)) + " double slip (click at a crossing of two straights)"; + slip.radius = definition.first; + slip.label = std::string{"Rkpd "} + definition.second + " R" + std::to_string(static_cast(definition.first)) + " double slip (click at a crossing of two straights)"; result.push_back(slip); } for (auto const &definition : definitions)