1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00

Implement TODO

This commit is contained in:
Tomasz Zieliński 2024-03-26 07:55:18 +01:00
parent 0b8dc02d2b
commit 9d620b924d

View File

@ -912,11 +912,10 @@ void CZonePlacer::assignZones(CRandomGenerator * rand)
for (int level = 0; level < levels; level++)
{
//Create different tiling for each level
auto vertices = penrose.generatePenroseTiling(zonesOnLevel[level].size(), rand);
// Assign zones to closest Penrose vertex
// TODO: Count zones on a level exactly?
auto vertices = penrose.generatePenroseTiling(zones.size() / map.levels(), rand);
std::map<std::shared_ptr<Zone>, std::set<int3>> vertexMapping;
for (const auto & vertex : vertices)