mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Don't place shipyard or boats at very small lakes
This commit is contained in:
parent
f2dc9cb48e
commit
1d2913bea0
@ -142,6 +142,13 @@ RouteInfo WaterProxy::waterRoute(Zone & dst)
|
||||
dst.areaPossible().subtract(lake.neighbourZones[dst.getId()]);
|
||||
continue;
|
||||
}
|
||||
|
||||
//Don't place shipyard or boats on the very small lake
|
||||
if (lake.area.getTiles().size() < 25)
|
||||
{
|
||||
logGlobal->info("Skipping very small lake at zone %d", dst.getId());
|
||||
continue;
|
||||
}
|
||||
|
||||
int zoneTowns = 0;
|
||||
if(auto * m = dst.getModificator<TownPlacer>())
|
||||
|
Loading…
Reference in New Issue
Block a user