1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Build fix

This commit is contained in:
Tomasz Zieliński 2024-04-13 19:33:47 +02:00
parent f491f10d81
commit 50ae067a60

View File

@ -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();