mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-12-28 20:00: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
6d8ee5af1f
commit
975ad02739
@ -60,7 +60,7 @@ local function heightmaps(minp, maxp)
|
|||||||
local depth_factor_max = 0
|
local depth_factor_max = 0
|
||||||
local imax = 0
|
local imax = 0
|
||||||
for i=1, 8 do
|
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]
|
depth_factor_max = depth_factors[i]
|
||||||
imax = i
|
imax = i
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user