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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user