mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-12-29 12:20:41 +01:00
Exclude exact riverbanks from rivers
This avoids considering points that are exactly at the border of a polygon as rivers
This commit is contained in:
parent
1ad8c96b8c
commit
fce6a33818
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user