mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Don't place shipyard or boats at very small lakes
(cherry picked from commit 1d2913bea0
)
This commit is contained in:
@ -143,6 +143,13 @@ RouteInfo WaterProxy::waterRoute(Zone & dst)
|
|||||||
continue;
|
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;
|
int zoneTowns = 0;
|
||||||
if(auto * m = dst.getModificator<TownPlacer>())
|
if(auto * m = dst.getModificator<TownPlacer>())
|
||||||
zoneTowns = m->getTotalTowns();
|
zoneTowns = m->getTotalTowns();
|
||||||
|
Reference in New Issue
Block a user