no other houses are placed if the area already has some terrain blending going on due to another village

master
Sokomine 2015-03-14 19:26:01 +01:00
parent 9cbffa6fca
commit b3d42ed165
1 changed files with 5 additions and 5 deletions

View File

@ -807,11 +807,11 @@ mg_villages.house_in_mapchunk_mark_intersection = function( villages, c, vnoise
end
if( not( v.is_single_house ) and
( mg_villages.inside_village_area( c.vx, c.vz, v, vnoise)
or mg_villages.inside_village_area( bx, bz, v, vnoise)
or mg_villages.inside_village_area((bx+bsizex), bz, v, vnoise)
or mg_villages.inside_village_area((bx+bsizex), (bz+bsizez), v, vnoise)
or mg_villages.inside_village_area( bx, (bz+bsizez), v, vnoise))) then
( mg_villages.inside_village_terrain_blend_area( c.vx, c.vz, v, vnoise)
or mg_villages.inside_village_terrain_blend_area( bx, bz, v, vnoise)
or mg_villages.inside_village_terrain_blend_area((bx+bsizex), bz, v, vnoise)
or mg_villages.inside_village_terrain_blend_area((bx+bsizex), (bz+bsizez), v, vnoise)
or mg_villages.inside_village_terrain_blend_area( bx, (bz+bsizez), v, vnoise))) then
mg_villages.print( mg_villages.DEBUG_LEVEL_WARNING, 'DROPPING house at '..c.vx..':'..c.vz..' due to intersection with village at '..id);
c.areas_intersect = 1;