From d69a13d58ad1597a01f0d2c3601276f3d2645caf Mon Sep 17 00:00:00 2001 From: szdytom Date: Sun, 3 Aug 2025 15:00:24 +0800 Subject: [PATCH] fix: deepwater generation near boundary Signed-off-by: szdytom --- tilemap/src/pass/deepwater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tilemap/src/pass/deepwater.cpp b/tilemap/src/pass/deepwater.cpp index fab8528..b1890c2 100644 --- a/tilemap/src/pass/deepwater.cpp +++ b/tilemap/src/pass/deepwater.cpp @@ -93,7 +93,8 @@ bool DeepwaterGenerationPass::is_surrounded_by_water( if (check_x < 0 || check_y < 0 || check_x >= static_cast(max_global_coord) || check_y >= static_cast(max_global_coord)) { - return false; // Out of bounds, consider as non-water + // Out of bounds, consider as water + continue; } // Convert back to TilePos and check if it's water