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

refactor: change typedef, nullptr, scoped_lock and others

This commit is contained in:
jerrrrycho
2026-09-27 19:31:00 +02:00
parent 8fbb482350
commit b8c9724ca3
42 changed files with 186 additions and 186 deletions

View File

@@ -1131,7 +1131,7 @@ void editor_mode::capture_terrain()
float const cellsize = static_cast<float>(std::max(0.1, extent / cells));
// sampler: highest captured triangle at (x,z)
auto const sampler = [&tris](double X, double Z, double &OutY) -> bool {
auto const sampler = [&tris](double X, double Z, double &OutY) {
double best = -std::numeric_limits<double>::max();
bool found = false;
for (auto const &t : tris)