Fix Call to bound_perlin()

master
benrob0329 2020-01-30 18:38:41 -05:00
parent 422553cf18
commit ff0c343be7
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ local function subdivide(options, x_min, x_max, z_min, z_max, x, z)
local width = x_max - x_min + 1 local width = x_max - x_min + 1
local height = z_max - z_min + 1 local height = z_max - z_min + 1
if (width > options.max_size) or (height > options.max_size) or (util.bound_perlin(pn, 1, x_min, 0, z_min) < 0.5) then if (width > options.max_size) or (height > options.max_size) or (util.bound_perlin(pn, 1, x_min, 0, z_min) == 1) then
if height > width then if height > width then
local z_min2, z_max2 = split(util.bound_perlin(pn, 1, x_min, 1, z_min), z_min, z_max, z, options.min_size) local z_min2, z_max2 = split(util.bound_perlin(pn, 1, x_min, 1, z_min), z_min, z_max, z, options.min_size)
local height2 = z_max2 - z_min2 + 1 local height2 = z_max2 - z_min2 + 1