From 5716bc16696ddc301fda014473e7cede30be4253 Mon Sep 17 00:00:00 2001 From: Hirek193 Date: Fri, 9 Oct 2026 21:16:34 +0200 Subject: [PATCH] Fix windows compilation --- editor/editorTerrainStreamer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editorTerrainStreamer.cpp b/editor/editorTerrainStreamer.cpp index bb6293db..482f436a 100644 --- a/editor/editorTerrainStreamer.cpp +++ b/editor/editorTerrainStreamer.cpp @@ -640,11 +640,11 @@ void terrain_streamer::update(glm::dvec3 const &Camera) // chunks gone out of range are dropped, except edited ones, which wait in memory to be saved auto const outside = [&](chunk_key const &Key, int const Margin) { - auto const near = [&](chunk_key const &Centre) { + auto const within = [&](chunk_key const &Centre) { auto const dx{Key.first - Centre.first}, dz{Key.second - Centre.second}; return dx * dx + dz * dz <= (radius + Margin) * (radius + Margin); }; - return false == near(here) && false == near(there); + return false == within(here) && false == within(there); }; for (auto it = m_chunks.begin(); it != m_chunks.end();) {