From fce6a338181e182b1c962c77778ebbdea5a8d06b 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 cbe8923..8a0cbf7 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