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