16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 07:49:19 +02:00

reformat: set variables to constexpr where possible

This commit is contained in:
jerrrrycho
2026-07-04 06:16:13 +02:00
parent aeb800283c
commit 6fd1d6715b
64 changed files with 541 additions and 541 deletions

View File

@@ -210,7 +210,7 @@ void editor_mode::snap_to_ground(scene::basic_node *node)
return;
// small tolerance so a node already resting on a surface still snaps cleanly to it
double const epsilon = 0.05;
constexpr double epsilon = 0.05;
double bestY = -std::numeric_limits<double>::max();
bool found = false;