17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 05:14:27 +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

@@ -91,7 +91,8 @@ class screen_projection
// where the ray through the point of the screen crosses the level of the height; false if it runs along it or away
bool on_level(ImVec2 const &Screen, double const Height, glm::dvec3 &Point) const
{
glm::dvec3 origin, direction;
glm::dvec3 origin;
glm::dvec3 direction;
ray(Screen, origin, direction);
if (std::abs(direction.y) < 1e-6)
return false;