17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 15:47:30 +01:00

refactor(editor): one declaration per statement (cpp:S1659) and no chained assignments (cpp:S1121) in the editor files of the branch; single statements under if/else/for that became two got braces

This commit is contained in:
maj00r
2026-10-11 22:28:35 +02:00
parent d2111afe19
commit f1a3bde00f
18 changed files with 320 additions and 132 deletions

View File

@@ -772,7 +772,8 @@ editor_mode::track_intent editor_mode::turntable_intent(glm::dvec3 const &Ground
intent.position = end.position;
return make(kind::turntable_fit, STR("Click: lead this track to the turntable"));
}
double heading, length;
double heading;
double length;
if (turntable_exit_at(cursor_level(centre.y), heading, length))
{
tool.heading = heading;