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