increased blending area size for individual houses slightly

master
Sokomine 2014-11-14 00:19:43 +01:00
parent 2b5a224de1
commit 677ac0c7d7
2 changed files with 3 additions and 3 deletions

View File

@ -55,8 +55,8 @@ mg_villages.village_area_mark_single_house_area = function(village_area, minp, m
local flatradn = flatrad + n_absblend * 2 -- vary shape of house flat area
local nodrad = math.sqrt(xr ^ 2 + zr ^ 2) -- node radius
if x >= pos.x and x <= pos.x + pos.bsizex -- area reserved for house
and z >= pos.z and z <= pos.z + pos.bsizez then
if x >= (pos.x-1) and x <= (pos.x + pos.bsizex + 1) -- area reserved for house
and z >= (pos.z-1) and z <= (pos.z + pos.bsizez + 1) then
village_area[ x ][ z ] = {village_nr, 4}
elseif nodrad <= flatradn or (xr == 0 and zr == 0) then -- irregular flat area around house
village_area[ x ][ z ] = {village_nr, 1}

View File

@ -735,7 +735,7 @@ mg_villages.houses_in_one_mapchunk = function( minp, mapchunk_size, villages, vn
xdim = bsizex + math.floor(FFAPROP * bsizex)
zdim = bsizez
end
local blenrad = math.floor((math.max(xdim, zdim) + 16) / 2) -- radius of blend area
local blenrad = math.floor((math.max(xdim, zdim) + 16) / 2)+2 -- radius of blend area
local blencenx = pr:next(minp.x + blenrad, minp.x + mapchunk_size - blenrad - 1) -- blend area centre point
local blencenz = pr:next(minp.z + blenrad, minp.z + mapchunk_size - blenrad - 1)
local minx = blencenx - math.ceil(xdim / 2) -- minimum point of house plus front flat area