17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-19 07: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

@@ -154,7 +154,7 @@ void terrain_streamer::update(glm::dvec3 const &CameraPos)
int const cells = m_cells;
float const cs = m_cellsize;
editor_terrain::height_sampler sampler =
[&loaded, x0, z0, cells, cs](double X, double Z, double &OutY) -> bool {
[&loaded, x0, z0, cells, cs](double X, double Z, double &OutY) {
int ix = static_cast<int>(std::lround((X - x0) / cs));
int iz = static_cast<int>(std::lround((Z - z0) / cs));
ix = std::clamp(ix, 0, cells);