Răsfoiți Sursa

Don't place shipyard or boats at very small lakes

(cherry picked from commit 1d2913bea0fb5029fd1e8843d8aedd62560c8d4e)
Tomasz Zieliński 2 ani în urmă
părinte
comite
dd3803b111
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      lib/rmg/WaterProxy.cpp

+ 7 - 0
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<TownPlacer>())