From 1d2913bea0fb5029fd1e8843d8aedd62560c8d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Sat, 18 Mar 2023 21:48:17 +0100 Subject: [PATCH] Don't place shipyard or boats at very small lakes --- lib/rmg/WaterProxy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/rmg/WaterProxy.cpp b/lib/rmg/WaterProxy.cpp index 6e9263cf1..a0e44dd53 100644 --- a/lib/rmg/WaterProxy.cpp +++ b/lib/rmg/WaterProxy.cpp @@ -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())