mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Build fix
This commit is contained in:
parent
f491f10d81
commit
50ae067a60
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user