1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Also allow filtering biomes by faction(s)

This commit is contained in:
Tomasz Zieliński
2024-04-12 10:25:13 +02:00
parent 6899acc1d7
commit 4fa7f0e93d
7 changed files with 115 additions and 23 deletions

View File

@@ -54,12 +54,8 @@ void ObstacleProxy::sortObstacles()
bool ObstacleProxy::prepareBiome(const ObstacleSetFilter & filter, CRandomGenerator & rand)
{
// FIXME: All the mountains have same ID and mostly same subID, how to differentiate them?
possibleObstacles.clear();
// TODO: Move this logic to ObstacleSetHandler
std::vector<std::shared_ptr<ObstacleSet>> obstacleSets;
size_t selectedSets = 0;