From 975ad02739adab45bd64d8881a5d5f37806ed34a Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Wed, 19 Jan 2022 11:19:37 +0100 Subject: [PATCH] Exclude exact riverbanks from rivers This avoids considering points that are exactly at the border of a polygon as rivers --- heightmap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heightmap.lua b/heightmap.lua index d6b2303..35b2737 100644 --- a/heightmap.lua +++ b/heightmap.lua @@ -60,7 +60,7 @@ local function heightmaps(minp, maxp) local depth_factor_max = 0 local imax = 0 for i=1, 8 do - if depth_factors[i] >= depth_factor_max then + if depth_factors[i] > depth_factor_max then depth_factor_max = depth_factors[i] imax = i end