do not attempt to create road network for roadless single house villages

This commit is contained in:
Sokomine 2017-07-24 18:18:54 +02:00
parent 110af8f573
commit 6f948fc3ab

View File

@ -160,6 +160,10 @@ mg_villages.get_road_list = function( village_id )
end
end
end
-- a village without roads (i.e. a single house)
if( not( roads[1])) then
return {};
end
-- the parent roads have already been identified
if( bpos_list[ roads[ 1 ]].parent_road_plot == 0 ) then
return roads;