Tomasz Zieliński 1 an în urmă
părinte
comite
50ae067a60
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      lib/mapping/ObstacleProxy.cpp

+ 2 - 2
lib/mapping/ObstacleProxy.cpp

@@ -59,7 +59,7 @@ bool ObstacleProxy::prepareBiome(const ObstacleSetFilter & filter, CRandomGenera
 	std::vector<std::shared_ptr<ObstacleSet>> obstacleSets;
 
 	size_t selectedSets = 0;
-	const size_t MINIMUM_SETS = 6;
+	const size_t MINIMUM_SETS = 4; // Original Lava has only 4 types of sets
 	const size_t MAXIMUM_SETS = 9;
 	const size_t MIN_SMALL_SETS = 3;
 	const size_t MAX_SMALL_SETS = 5;
@@ -182,7 +182,7 @@ bool ObstacleProxy::prepareBiome(const ObstacleSetFilter & filter, CRandomGenera
 
 	// Copy this set to our possible obstacles
 
-	if (selectedSets >= 4 || // Original Lava has only 4 types of sets
+	if (selectedSets >= MINIMUM_SETS ||
 		(terrain == TerrainId::WATER && selectedSets > 0))
 	{
 		obstaclesBySize.clear();